From: markt Date: Thu, 22 Sep 2011 19:34:16 +0000 (+0000) Subject: Remove unused code X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4a317f944addd71516fa3917d6f1dd96f666d636;p=tomcat7.0 Remove unused code git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1174338 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/InternalNioOutputBuffer.java b/java/org/apache/coyote/http11/InternalNioOutputBuffer.java index 938b7cf56..dca3fae5c 100644 --- a/java/org/apache/coyote/http11/InternalNioOutputBuffer.java +++ b/java/org/apache/coyote/http11/InternalNioOutputBuffer.java @@ -176,7 +176,6 @@ public class InternalNioOutputBuffer extends AbstractOutputBuffer { if ( selector != null ) pool.put(selector); } if ( block ) bytebuffer.clear(); //only clear - this.total = 0; return written; } @@ -212,7 +211,6 @@ public class InternalNioOutputBuffer extends AbstractOutputBuffer { } - private int total = 0; private synchronized void addToBB(byte[] buf, int offset, int length) throws IOException { while (length > 0) { int thisTime = length; @@ -227,7 +225,6 @@ public class InternalNioOutputBuffer extends AbstractOutputBuffer { socket.getBufHandler().getWriteBuffer().put(buf, offset, thisTime); length = length - thisTime; offset = offset + thisTime; - total += thisTime; } NioEndpoint.KeyAttachment ka = (NioEndpoint.KeyAttachment)socket.getAttachment(false); if ( ka!= null ) ka.access();//prevent timeouts for just doing client writes