From: Tom Tromey Date: Wed, 5 May 2004 08:24:13 +0000 (+0000) Subject: BufferedReader.java (skip): Removed unused variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a54f498a27ec92d0552cd38390e7798708cb9fe2;p=gcc.git BufferedReader.java (skip): Removed unused variable. 2004-05-05 Tom Tromey * java/io/BufferedReader.java (skip): Removed unused variable. From-SVN: r81511 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index cbf9a8995da..45febe3d836 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-05-05 Tom Tromey + + * java/io/BufferedReader.java (skip): Removed unused + variable. + 2004-05-05 Michael Koch * java/awt/FileDialog.java: Import java.io.Serializable explicitly. diff --git a/libjava/java/io/BufferedReader.java b/libjava/java/io/BufferedReader.java index 9175d4e89f9..444b66de408 100644 --- a/libjava/java/io/BufferedReader.java +++ b/libjava/java/io/BufferedReader.java @@ -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;