BufferedReader.java (skip): Removed unused variable.
authorTom Tromey <tromey@redhat.com>
Wed, 5 May 2004 08:24:13 +0000 (08:24 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 5 May 2004 08:24:13 +0000 (08:24 +0000)
2004-05-05  Tom Tromey  <tromey@redhat.com>

* java/io/BufferedReader.java (skip): Removed unused
variable.

From-SVN: r81511

libjava/ChangeLog
libjava/java/io/BufferedReader.java

index cbf9a8995da73bc6d5568d61457495487d0bd94d..45febe3d83639f1ab95ff0246f452197e1056482 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-05  Tom Tromey  <tromey@redhat.com>
+
+       * java/io/BufferedReader.java (skip): Removed unused
+       variable.
+
 2004-05-05  Michael Koch  <konqueror@gmx.de>
 
        * java/awt/FileDialog.java: Import java.io.Serializable explicitly.
index 9175d4e89f9291303ac0fe8917d4d5193454b6f4..444b66de408f8be058cb70445d3038fdcb84c703 100644 (file)
@@ -533,12 +533,13 @@ public class BufferedReader extends Reader
        // skip the '\n' for us).  By doing this, we'll have to back up pos.
        // That's easier than trying to keep track of whether we've skipped
        // one element or not.
-       int ch;
        if (pos > limit)
-         if ((ch = read()) < 0)
-           return 0;
-         else
-           --pos; 
+         {
+           if (read() < 0)
+             return 0;
+           else
+             --pos; 
+         }
 
        int avail = limit - pos;