Author: rfm
Date: Sat Mar  5 11:10:23 2016
New Revision: 39456

URL: http://svn.gna.org/viewcvs/gnustep?rev=39456&view=rev
Log:
remove unused code spotted by Fred

Modified:
    libs/base/trunk/Source/win32/GSFileHandle.m

Modified: libs/base/trunk/Source/win32/GSFileHandle.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/win32/GSFileHandle.m?rev=39456&r1=39455&r2=39456&view=diff
==============================================================================
--- libs/base/trunk/Source/win32/GSFileHandle.m (original)
+++ libs/base/trunk/Source/win32/GSFileHandle.m Sat Mar  5 11:10:23 2016
@@ -1291,43 +1291,6 @@
 
 // Synchronous I/O operations
 
-#if 0
-- (NSData*) availableData
-{
-  char                 buf[READ_SIZE];
-  SMutableData*        d;
-  int                  len;
-
-  [self checkRead];
-  if (isNonBlocking == YES)
-    {
-      [self setNonBlocking: NO];
-    }
-  d = [NSMutableData dataWithCapacity: 0];
-  if (isStandardFile)
-    {
-      while ((len = [self read: buf length: sizeof(buf)]) > 0)
-        {
-         [d appendBytes: buf length: len];
-        }
-    }
-  else
-    {
-      len = [self read: buf length: sizeof(buf)];
-      if (len > 0)
-       {
-         [d appendBytes: buf length: len];
-       }
-    }
-  if (len < 0)
-    {
-      [NSException raise: NSFileHandleOperationException
-                  format: @"unable to read from descriptor - %@",
-                  [NSError _last]];
-    }
-  return d;
-}
-#endif
 - (NSData*) availableData
 {
   char                 buf[READ_SIZE];


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to