From ef26ffe9d83e625167a6025c7537fb674157bfab Mon Sep 17 00:00:00 2001 From: Jeff Pinner Date: Fri, 16 Nov 2012 16:24:52 -0800 Subject: [PATCH] SPDY: remove deprecated methods --- .../handler/codec/spdy/SpdyFrameDecoder.java | 9 -- .../netty/handler/codec/spdy/SpdyHeaders.java | 120 ------------------ 2 files changed, 129 deletions(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameDecoder.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameDecoder.java index 1ebae5b37d..9a1ac6a3b2 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameDecoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameDecoder.java @@ -60,15 +60,6 @@ public class SpdyFrameDecoder extends ByteToMessageDecoder { FRAME_ERROR } - /** - * Creates a new instance with the default {@code version (2)}, - * {@code maxChunkSize (8192)}, and {@code maxHeaderSize (16384)}. - */ - @Deprecated - public SpdyFrameDecoder() { - this(2); - } - /** * Creates a new instance with the specified {@code version} and the default * {@code maxChunkSize (8192)} and {@code maxHeaderSize (16384)}. diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaders.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaders.java index e305e5746c..1807eee141 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaders.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHeaders.java @@ -166,14 +166,6 @@ public class SpdyHeaders { block.setHeader(HttpNames.HOST, host); } - /** - * Removes the HTTP method header. - */ - @Deprecated - public static void removeMethod(SpdyHeaderBlock block) { - removeMethod(2, block); - } - /** * Removes the HTTP method header. */ @@ -185,14 +177,6 @@ public class SpdyHeaders { } } - /** - * Returns the {@link HttpMethod} represented by the HTTP method header. - */ - @Deprecated - public static HttpMethod getMethod(SpdyHeaderBlock block) { - return getMethod(2, block); - } - /** * Returns the {@link HttpMethod} represented by the HTTP method header. */ @@ -208,14 +192,6 @@ public class SpdyHeaders { } } - /** - * Sets the HTTP method header. - */ - @Deprecated - public static void setMethod(SpdyHeaderBlock block, HttpMethod method) { - setMethod(2, block, method); - } - /** * Sets the HTTP method header. */ @@ -227,14 +203,6 @@ public class SpdyHeaders { } } - /** - * Removes the URL scheme header. - */ - @Deprecated - public static void removeScheme(SpdyHeaderBlock block) { - removeMethod(2, block); - } - /** * Removes the URL scheme header. */ @@ -246,14 +214,6 @@ public class SpdyHeaders { } } - /** - * Returns the value of the URL scheme header. - */ - @Deprecated - public static String getScheme(SpdyHeaderBlock block) { - return getScheme(2, block); - } - /** * Returns the value of the URL scheme header. */ @@ -265,14 +225,6 @@ public class SpdyHeaders { } } - /** - * Sets the URL scheme header. - */ - @Deprecated - public static void setScheme(SpdyHeaderBlock block, String scheme) { - setScheme(2, block, scheme); - } - /** * Sets the URL scheme header. */ @@ -284,14 +236,6 @@ public class SpdyHeaders { } } - /** - * Removes the HTTP response status header. - */ - @Deprecated - public static void removeStatus(SpdyHeaderBlock block) { - removeMethod(2, block); - } - /** * Removes the HTTP response status header. */ @@ -303,14 +247,6 @@ public class SpdyHeaders { } } - /** - * Returns the {@link HttpResponseStatus} represented by the HTTP response status header. - */ - @Deprecated - public static HttpResponseStatus getStatus(SpdyHeaderBlock block) { - return getStatus(2, block); - } - /** * Returns the {@link HttpResponseStatus} represented by the HTTP response status header. */ @@ -340,14 +276,6 @@ public class SpdyHeaders { } } - /** - * Sets the HTTP response status header. - */ - @Deprecated - public static void setStatus(SpdyHeaderBlock block, HttpResponseStatus status) { - setStatus(2, block, status); - } - /** * Sets the HTTP response status header. */ @@ -359,14 +287,6 @@ public class SpdyHeaders { } } - /** - * Removes the URL path header. - */ - @Deprecated - public static void removeUrl(SpdyHeaderBlock block) { - removeUrl(2, block); - } - /** * Removes the URL path header. */ @@ -378,14 +298,6 @@ public class SpdyHeaders { } } - /** - * Returns the value of the URL path header. - */ - @Deprecated - public static String getUrl(SpdyHeaderBlock block) { - return getUrl(2, block); - } - /** * Returns the value of the URL path header. */ @@ -397,14 +309,6 @@ public class SpdyHeaders { } } - /** - * Sets the URL path header. - */ - @Deprecated - public static void setUrl(SpdyHeaderBlock block, String path) { - setUrl(2, block, path); - } - /** * Sets the URL path header. */ @@ -416,14 +320,6 @@ public class SpdyHeaders { } } - /** - * Removes the HTTP version header. - */ - @Deprecated - public static void removeVersion(SpdyHeaderBlock block) { - removeVersion(2, block); - } - /** * Removes the HTTP version header. */ @@ -435,14 +331,6 @@ public class SpdyHeaders { } } - /** - * Returns the {@link HttpVersion} represented by the HTTP version header. - */ - @Deprecated - public static HttpVersion getVersion(SpdyHeaderBlock block) { - return getVersion(2, block); - } - /** * Returns the {@link HttpVersion} represented by the HTTP version header. */ @@ -458,14 +346,6 @@ public class SpdyHeaders { } } - /** - * Sets the HTTP version header. - */ - @Deprecated - public static void setVersion(SpdyHeaderBlock block, HttpVersion httpVersion) { - setVersion(2, block, httpVersion); - } - /** * Sets the HTTP version header. */