db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r742380 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java
Date Mon, 09 Feb 2009 10:45:11 GMT
Author: kristwaa
Date: Mon Feb  9 10:45:11 2009
New Revision: 742380

URL: http://svn.apache.org/viewvc?rev=742380&view=rev
Log:
DERBY-3934: Removed unused method 'readUnsignedShort' from UTF8Reader.
Patch file: derby-3934-6a-UTF8Reader_remove_method.diff

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java?rev=742380&r1=742379&r2=742380&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java Mon Feb  9
10:45:11 2009
@@ -593,25 +593,6 @@
     }
 
     /**
-     * Decode the length encoded in the stream.
-     * 
-     * This method came from {@link java.io.DataInputStream}
-     * 
-     * @return The number of bytes in the stream, or <code>0</code> if the
-     *      length is unknown and the end of stream must be marked by the
-     *      Derby-specific end of stream marker.
-     */
-    private final int readUnsignedShort() throws IOException {
-        int ch1 = in.read();
-        int ch2 = in.read();
-        if ((ch1 | ch2) < 0)
-            throw new EOFException("Reached EOF when reading" +
-                                   "encoded length bytes");
-
-        return (ch1 << 8) + (ch2 << 0);
-    }
-
-    /**
      * Calculates an optimized buffer size.
      * <p>
      * The maximum size allowed is returned if the specified values don't give



Mime
View raw message