remove unused code spotted by Fred

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39456 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-03-05 10:10:23 +00:00
parent 629e772269
commit b7bfd48166

View file

@ -1291,43 +1291,6 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
// 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];