directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r161899 - directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java
Date Tue, 19 Apr 2005 14:30:44 GMT
Author: trustin
Date: Tue Apr 19 07:30:44 2005
New Revision: 161899

URL: http://svn.apache.org/viewcvs?view=rev&rev=161899
Log:
Removed unused local variables.

Modified:
    directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java

Modified: directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java?view=diff&r1=161898&r2=161899
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java Tue Apr 19 07:30:44
2005
@@ -889,7 +889,6 @@
         {
             boolean utf16 = decoder.charset().name().startsWith( "UTF-16" );
 
-            int oldPos = buf.position();
             int oldLimit = buf.limit();
             int end;
 
@@ -992,7 +991,6 @@
             }
 
             int i;
-            int oldPos = buf.position();
             int oldLimit = buf.limit();
             int end = buf.position() + fieldSize;
 
@@ -1092,7 +1090,6 @@
             autoExpand( fieldSize );
             
             CharBuffer in = CharBuffer.wrap( val ); 
-            int expectedLength = (int) (in.remaining() * encoder.averageBytesPerChar());
             boolean utf16 = encoder.charset().name().startsWith( "UTF-16" );
 
             if( utf16 && ( ( fieldSize & 1 ) != 0 ) )
@@ -1153,7 +1150,6 @@
         {
             CharBuffer in = CharBuffer.wrap( val ); 
             int expectedLength = (int) (in.remaining() * encoder.averageBytesPerChar());
-            boolean utf16 = encoder.charset().name().startsWith( "UTF-16" );
 
             encoder.reset();
 



Mime
View raw message