From 264a292034c9fa4b20857beadbd4b6f30cb32a1e Mon Sep 17 00:00:00 2001 From: markt Date: Wed, 5 Jan 2011 09:45:18 +0000 Subject: [PATCH] Remove unused constants (follow up to r1055377) git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1055382 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/coyote/http11/filters/ChunkedOutputFilter.java | 7 ------- .../apache/coyote/http11/filters/GzipOutputFilter.java | 15 --------------- .../coyote/http11/filters/IdentityOutputFilter.java | 15 --------------- .../apache/coyote/http11/filters/VoidOutputFilter.java | 15 --------------- 4 files changed, 52 deletions(-) diff --git a/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java b/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java index af71df8d8..9dd0535ae 100644 --- a/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java +++ b/java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java @@ -34,12 +34,6 @@ public class ChunkedOutputFilter implements OutputFilter { // -------------------------------------------------------------- Constants - - - protected static final String ENCODING_NAME = "chunked"; - protected static final ByteChunk ENCODING = new ByteChunk(); - - /** * End chunk. */ @@ -50,7 +44,6 @@ public class ChunkedOutputFilter implements OutputFilter { static { - ENCODING.setBytes(ENCODING_NAME.getBytes(), 0, ENCODING_NAME.length()); byte[] END_CHUNK_BYTES = {(byte) '0', (byte) '\r', (byte) '\n', (byte) '\r', (byte) '\n'}; END_CHUNK.setBytes(END_CHUNK_BYTES, 0, END_CHUNK_BYTES.length); diff --git a/java/org/apache/coyote/http11/filters/GzipOutputFilter.java b/java/org/apache/coyote/http11/filters/GzipOutputFilter.java index 0e9588352..81d581532 100644 --- a/java/org/apache/coyote/http11/filters/GzipOutputFilter.java +++ b/java/org/apache/coyote/http11/filters/GzipOutputFilter.java @@ -34,13 +34,6 @@ import org.apache.tomcat.util.buf.ByteChunk; public class GzipOutputFilter implements OutputFilter { - // -------------------------------------------------------------- Constants - - - protected static final String ENCODING_NAME = "gzip"; - protected static final ByteChunk ENCODING = new ByteChunk(); - - /** * Logger. */ @@ -48,14 +41,6 @@ public class GzipOutputFilter implements OutputFilter { org.apache.juli.logging.LogFactory.getLog(GzipOutputFilter.class); - // ----------------------------------------------------- Static Initializer - - - static { - ENCODING.setBytes(ENCODING_NAME.getBytes(), 0, ENCODING_NAME.length()); - } - - // ----------------------------------------------------- Instance Variables diff --git a/java/org/apache/coyote/http11/filters/IdentityOutputFilter.java b/java/org/apache/coyote/http11/filters/IdentityOutputFilter.java index 5b8fc05ae..a72c2fdc7 100644 --- a/java/org/apache/coyote/http11/filters/IdentityOutputFilter.java +++ b/java/org/apache/coyote/http11/filters/IdentityOutputFilter.java @@ -32,21 +32,6 @@ import org.apache.tomcat.util.buf.ByteChunk; public class IdentityOutputFilter implements OutputFilter { - // -------------------------------------------------------------- Constants - - - protected static final String ENCODING_NAME = "identity"; - protected static final ByteChunk ENCODING = new ByteChunk(); - - - // ----------------------------------------------------- Static Initializer - - - static { - ENCODING.setBytes(ENCODING_NAME.getBytes(), 0, ENCODING_NAME.length()); - } - - // ----------------------------------------------------- Instance Variables diff --git a/java/org/apache/coyote/http11/filters/VoidOutputFilter.java b/java/org/apache/coyote/http11/filters/VoidOutputFilter.java index e2c7e44ce..9e1de7c35 100644 --- a/java/org/apache/coyote/http11/filters/VoidOutputFilter.java +++ b/java/org/apache/coyote/http11/filters/VoidOutputFilter.java @@ -33,21 +33,6 @@ import org.apache.tomcat.util.buf.ByteChunk; public class VoidOutputFilter implements OutputFilter { - // -------------------------------------------------------------- Constants - - - protected static final String ENCODING_NAME = "void"; - protected static final ByteChunk ENCODING = new ByteChunk(); - - - // ----------------------------------------------------- Static Initializer - - - static { - ENCODING.setBytes(ENCODING_NAME.getBytes(), 0, ENCODING_NAME.length()); - } - - // --------------------------------------------------- OutputBuffer Methods -- 2.11.0