Deprecated unused code
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1821252 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/java/org/apache/tomcat/util/buf/CharChunk.java b/java/org/apache/tomcat/util/buf/CharChunk.java
index c632ca2..4b337c7 100644
--- a/java/org/apache/tomcat/util/buf/CharChunk.java
+++ b/java/org/apache/tomcat/util/buf/CharChunk.java
@@ -78,8 +78,6 @@
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 void setOptimizedWrite(boolean optimizedWrite) {
- this.optimizedWrite = optimizedWrite;
- }
-
-
/**
* Sets the buffer to the specified subarray of characters.
*
@@ -234,7 +227,7 @@
// 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 @@
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) {
+ }
}