Remove unused constants (follow up to r1055377)
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 5 Jan 2011 09:45:18 +0000 (09:45 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 5 Jan 2011 09:45:18 +0000 (09:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1055382 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/filters/ChunkedOutputFilter.java
java/org/apache/coyote/http11/filters/GzipOutputFilter.java
java/org/apache/coyote/http11/filters/IdentityOutputFilter.java
java/org/apache/coyote/http11/filters/VoidOutputFilter.java

index af71df8..9dd0535 100644 (file)
@@ -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);
index 0e95883..81d5815 100644 (file)
@@ -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
 
 
index 5b8fc05..a72c2fd 100644 (file)
@@ -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
 
 
index e2c7e44..9e1de7c 100644 (file)
@@ -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