Author: gonzalo
Date: 2005-04-20 21:15:27 -0400 (Wed, 20 Apr 2005)
New Revision: 43369

Modified:
   trunk/mcs/class/corlib/System.IO/FileStream.cs
Log:
warnings

Modified: trunk/mcs/class/corlib/System.IO/FileStream.cs
===================================================================
--- trunk/mcs/class/corlib/System.IO/FileStream.cs      2005-04-21 00:47:25 UTC 
(rev 43368)
+++ trunk/mcs/class/corlib/System.IO/FileStream.cs      2005-04-21 01:15:27 UTC 
(rev 43369)
@@ -585,8 +585,6 @@
                        if (!async)
                                return base.BeginWrite (buffer, offset, count, 
cback, state);
 
-                       byte [] bytes;
-                       int buffered = 0;
                        FileStreamAsyncResult result = new 
FileStreamAsyncResult (cback, state);
                        result.BytesRead = -1;
                        result.Count = count;
@@ -595,13 +593,9 @@
                        if (buf_dirty) {
                                MemoryStream ms = new MemoryStream ();
                                FlushBufferToStream (ms);
-                               buffered = (int) ms.Length;
                                ms.Write (buffer, offset, count);
-                               bytes = ms.GetBuffer ();
                                offset = 0;
                                count = (int) ms.Length;
-                       } else {
-                               bytes = buffer;
                        }
 
                        WriteDelegate w = new WriteDelegate (WriteInternal);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to