Author: markt
Date: Tue Jan 16 14:42:52 2018
New Revision: 1821252

URL: http://svn.apache.org/viewvc?rev=1821252&view=rev
Log:
Deprecated unused code

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/buf/CharChunk.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/CharChunk.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/CharChunk.java?rev=1821252&r1=1821251&r2=1821252&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/CharChunk.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/CharChunk.java Tue Jan 16 
14:42:52 2018
@@ -78,8 +78,6 @@ public final class CharChunk extends Abs
     private transient CharInputChannel in = null;
     private transient CharOutputChannel out = null;
 
-    private boolean optimizedWrite = true;
-
 
     /**
      * Creates a new, uninitialized CharChunk object.
@@ -115,11 +113,6 @@ public final class CharChunk extends Abs
     }
 
 
-    public void setOptimizedWrite(boolean optimizedWrite) {
-        this.optimizedWrite = optimizedWrite;
-    }
-
-
     /**
      * Sets the buffer to the specified subarray of characters.
      *
@@ -234,7 +227,7 @@ public final class CharChunk extends Abs
         // If the buffer is empty and the source is going to fill up all the
         // space in buffer, may as well write it directly to the output,
         // and avoid an extra copy
-        if (optimizedWrite && len == limit && end == start && out != null) {
+        if (len == limit && end == start && out != null) {
             out.realWriteChars(src, off, len);
             return;
         }
@@ -693,4 +686,15 @@ public final class CharChunk extends Abs
         return end - start;
     }
 
+    /**
+     * NO-OP.
+     *
+     * @param optimizedWrite Ignored
+     *
+     * @deprecated Unused code. This is now a NO-OP and will be removed without
+     *             replacement in Tomcat 10.
+     */
+    @Deprecated
+    public void setOptimizedWrite(boolean optimizedWrite) {
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to