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 90c65b7157
commit 2c0ecd9d44
16 changed files with 0 additions and 164 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -73,14 +73,6 @@ public class SpdySessionStatus implements Comparable<SpdySessionStatus> {
this.statusPhrase = statusPhrase; this.statusPhrase = statusPhrase;
} }
/**
* @deprecated Use {@link #code()} instead.
*/
@Deprecated
public int getCode() {
return code();
}
/** /**
* Returns the code of this status. * Returns the code of this status.
*/ */
@ -88,14 +80,6 @@ public class SpdySessionStatus implements Comparable<SpdySessionStatus> {
return code; return code;
} }
/**
* @deprecated Use {@link #statusPhrase()} instead.
*/
@Deprecated
public String getStatusPhrase() {
return statusPhrase();
}
/** /**
* Returns the status phrase of this status. * 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_INITIAL_WINDOW_SIZE = 7;
int SETTINGS_CLIENT_CERTIFICATE_VECTOR_SIZE = 8; int SETTINGS_CLIENT_CERTIFICATE_VECTOR_SIZE = 8;
/**
* @deprecated Use {@link #ids()} instead.
*/
@Deprecated
Set<Integer> getIds();
/** /**
* Returns a {@code Set} of the setting IDs. * Returns a {@code Set} of the setting IDs.
* The set's iterator will return the IDs in ascending order. * 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 { public interface SpdyStreamFrame extends SpdyFrame {
/**
* @deprecated Use {@link #streamId()} instead.
*/
@Deprecated
int getStreamId();
/** /**
* Returns the Stream-ID of this frame. * Returns the Stream-ID of this frame.
*/ */

View File

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

View File

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

View File

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