mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
629e772269
commit
b7bfd48166
1 changed files with 0 additions and 37 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue