Remove the deprecated methods in SPDY

SPDY is an experimental package. No need to keep ABI compatibility.
This commit is contained in:
Trustin Lee 2014-06-27 16:46:45 +09:00
parent 2bdcedeffd
commit 7b2d2e22ba
16 changed files with 0 additions and 164 deletions

View File

@ -55,12 +55,6 @@ public class DefaultSpdyGoAwayFrame implements SpdyGoAwayFrame {
setStatus(status);
}
@Override
@Deprecated
public int getLastGoodStreamId() {
return lastGoodStreamId();
}
@Override
public int lastGoodStreamId() {
return lastGoodStreamId;
@ -76,12 +70,6 @@ public class DefaultSpdyGoAwayFrame implements SpdyGoAwayFrame {
return this;
}
@Override
@Deprecated
public SpdySessionStatus getStatus() {
return status();
}
@Override
public SpdySessionStatus status() {
return status;

View File

@ -33,12 +33,6 @@ public class DefaultSpdyPingFrame implements SpdyPingFrame {
setId(id);
}
@Override
@Deprecated
public int getId() {
return id();
}
@Override
public int id() {
return id;

View File

@ -58,12 +58,6 @@ public class DefaultSpdyRstStreamFrame extends DefaultSpdyStreamFrame
return this;
}
@Override
@Deprecated
public SpdyStreamStatus getStatus() {
return status();
}
@Override
public SpdyStreamStatus status() {
return status;

View File

@ -29,12 +29,6 @@ public class DefaultSpdySettingsFrame implements SpdySettingsFrame {
private boolean clear;
private final Map<Integer, Setting> settingsMap = new TreeMap<Integer, Setting>();
@Override
@Deprecated
public Set<Integer> getIds() {
return ids();
}
@Override
public Set<Integer> ids() {
return settingsMap.keySet();

View File

@ -32,12 +32,6 @@ public abstract class DefaultSpdyStreamFrame implements SpdyStreamFrame {
setStreamId(streamId);
}
@Override
@Deprecated
public int getStreamId() {
return streamId();
}
@Override
public int streamId() {
return streamId;

View File

@ -58,23 +58,11 @@ public class DefaultSpdySynStreamFrame extends DefaultSpdyHeadersFrame
return this;
}
@Override
@Deprecated
public int getAssociatedToStreamId() {
return associatedStreamId();
}
@Override
public int associatedStreamId() {
return associatedStreamId;
}
@Override
@Deprecated
public SpdySynStreamFrame setAssociatedToStreamId(int associatedToStreamId) {
return setAssociatedStreamId(associatedToStreamId);
}
@Override
public SpdySynStreamFrame setAssociatedStreamId(int associatedStreamId) {
if (associatedStreamId < 0) {
@ -86,12 +74,6 @@ public class DefaultSpdySynStreamFrame extends DefaultSpdyHeadersFrame
return this;
}
@Override
@Deprecated
public byte getPriority() {
return priority();
}
@Override
public byte priority() {
return priority;

View File

@ -36,12 +36,6 @@ public class DefaultSpdyWindowUpdateFrame implements SpdyWindowUpdateFrame {
setDeltaWindowSize(deltaWindowSize);
}
@Override
@Deprecated
public int getStreamId() {
return streamId();
}
@Override
public int streamId() {
return streamId;
@ -57,12 +51,6 @@ public class DefaultSpdyWindowUpdateFrame implements SpdyWindowUpdateFrame {
return this;
}
@Override
@Deprecated
public int getDeltaWindowSize() {
return deltaWindowSize();
}
@Override
public int deltaWindowSize() {
return deltaWindowSize;

View File

@ -20,12 +20,6 @@ package io.netty.handler.codec.spdy;
*/
public interface SpdyGoAwayFrame extends SpdyFrame {
/**
* @deprecated Use {@link #lastGoodStreamId()} instead.
*/
@Deprecated
int getLastGoodStreamId();
/**
* Returns the Last-good-stream-ID of this frame.
*/
@ -37,12 +31,6 @@ public interface SpdyGoAwayFrame extends SpdyFrame {
*/
SpdyGoAwayFrame setLastGoodStreamId(int lastGoodStreamId);
/**
* @deprecated Use {@link #status()} instead.
*/
@Deprecated
SpdySessionStatus getStatus();
/**
* Returns the status of this frame.
*/

View File

@ -20,12 +20,6 @@ package io.netty.handler.codec.spdy;
*/
public interface SpdyPingFrame extends SpdyFrame {
/**
* @deprecated Use {@link #id()} instead.
*/
@Deprecated
int getId();
/**
* Returns the ID of this frame.
*/

View File

@ -20,12 +20,6 @@ package io.netty.handler.codec.spdy;
*/
public interface SpdyRstStreamFrame extends SpdyStreamFrame {
/**
* @deprecated Use {@link #status()} instead.
*/
@Deprecated
SpdyStreamStatus getStatus();
/**
* Returns the status of this frame.
*/

View File

@ -73,14 +73,6 @@ public class SpdySessionStatus implements Comparable<SpdySessionStatus> {
this.statusPhrase = statusPhrase;
}
/**
* @deprecated Use {@link #code()} instead.
*/
@Deprecated
public int getCode() {
return code();
}
/**
* Returns the code of this status.
*/
@ -88,14 +80,6 @@ public class SpdySessionStatus implements Comparable<SpdySessionStatus> {
return code;
}
/**
* @deprecated Use {@link #statusPhrase()} instead.
*/
@Deprecated
public String getStatusPhrase() {
return statusPhrase();
}
/**
* Returns the status phrase of this status.
*/

View File

@ -32,12 +32,6 @@ public interface SpdySettingsFrame extends SpdyFrame {
int SETTINGS_INITIAL_WINDOW_SIZE = 7;
int SETTINGS_CLIENT_CERTIFICATE_VECTOR_SIZE = 8;
/**
* @deprecated Use {@link #ids()} instead.
*/
@Deprecated
Set<Integer> getIds();
/**
* Returns a {@code Set} of the setting IDs.
* The set's iterator will return the IDs in ascending order.

View File

@ -20,12 +20,6 @@ package io.netty.handler.codec.spdy;
*/
public interface SpdyStreamFrame extends SpdyFrame {
/**
* @deprecated Use {@link #streamId()} instead.
*/
@Deprecated
int getStreamId();
/**
* Returns the Stream-ID of this frame.
*/

View File

@ -147,14 +147,6 @@ public class SpdyStreamStatus implements Comparable<SpdyStreamStatus> {
this.statusPhrase = statusPhrase;
}
/**
* @deprecated Use {@link #code()} instead.
*/
@Deprecated
public int getCode() {
return code();
}
/**
* Returns the code of this status.
*/
@ -162,14 +154,6 @@ public class SpdyStreamStatus implements Comparable<SpdyStreamStatus> {
return code;
}
/**
* @deprecated Use {@link #statusPhrase()} instead.
*/
@Deprecated
public String getStatusPhrase() {
return statusPhrase();
}
/**
* Returns the status phrase of this status.
*/

View File

@ -20,35 +20,17 @@ package io.netty.handler.codec.spdy;
*/
public interface SpdySynStreamFrame extends SpdyHeadersFrame {
/**
* @deprecated Use {@link #associatedStreamId()} instead.
*/
@Deprecated
int getAssociatedToStreamId();
/**
* Returns the Associated-To-Stream-ID of this frame.
*/
int associatedStreamId();
/**
* @deprecated Use {@link #setAssociatedStreamId(int)} instead.
*/
@Deprecated
SpdySynStreamFrame setAssociatedToStreamId(int associatedToStreamId);
/**
* Sets the Associated-To-Stream-ID of this frame.
* The Associated-To-Stream-ID cannot be negative.
*/
SpdySynStreamFrame setAssociatedStreamId(int associatedStreamId);
/**
* Use {@link #priority()} instead.
*/
@Deprecated
byte getPriority();
/**
* Returns the priority of the stream.
*/

View File

@ -20,12 +20,6 @@ package io.netty.handler.codec.spdy;
*/
public interface SpdyWindowUpdateFrame extends SpdyFrame {
/**
* @deprecated Use {@link #streamId()} instead.
*/
@Deprecated
int getStreamId();
/**
* Returns the Stream-ID of this frame.
*/
@ -36,12 +30,6 @@ public interface SpdyWindowUpdateFrame extends SpdyFrame {
*/
SpdyWindowUpdateFrame setStreamId(int streamID);
/**
* @deprecated Use {@link #deltaWindowSize()} instead.
*/
@Deprecated
int getDeltaWindowSize();
/**
* Returns the Delta-Window-Size of this frame.
*/