revert, this was a mistake
authorMiguel de Icaza <miguel@gnome.org>
Wed, 24 Jan 2007 18:37:03 +0000 (18:37 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 24 Jan 2007 18:37:03 +0000 (18:37 -0000)
svn path=/trunk/mcs/; revision=71617

mcs/class/corlib/System.IO/ChangeLog
mcs/class/corlib/System.IO/StreamReader.cs

index 22d24b61ccc6d61d12a2942f1c26dea946dacd6c..9b0f387c3dba0cceb19b01db1db77630220dd4e8 100644 (file)
@@ -1,9 +1,3 @@
-2007-01-23  Miguel de Icaza  <miguel@novell.com>
-
-       * StreamReader.cs (Read): Fix this overload, we were just lucky
-       that it worked in the past.   Must trigger a load from the buffer
-       if we reached its end.
-
 2007-01-22  Miguel de Icaza  <miguel@novell.com>
 
        * DirectoryInfo.cs: Throw a better exception (accorind go the
index 81a50b5e06cec56b349700e1e60da10a9c841414..9102031f2f3ef4bfd276129172d6180c0f990282 100644 (file)
@@ -346,10 +346,6 @@ namespace System.IO {
                        if (pos >= decoded_count && ReadBuffer () == 0)
                                return -1;
 
-                       if (pos >= decoded_count){
-                               if (ReadBuffer () == 0)
-                                       return -1;
-                       }
                        return decoded_buffer [pos++];
                }