mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(-initWithMode:, -streamMode): Methods removed.
(-isWritable): New method. (-initWithCoder): Renamed from +newWithCoder.m. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@373 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4344fb3804
commit
9ede0d2271
1 changed files with 5 additions and 30 deletions
|
@ -28,25 +28,11 @@
|
|||
|
||||
@implementation Stream
|
||||
|
||||
- initWithMode: (int)m
|
||||
{
|
||||
[super init];
|
||||
mode = m;
|
||||
return self;
|
||||
}
|
||||
|
||||
- init
|
||||
{
|
||||
return [self initWithMode:STREAM_READWRITE];
|
||||
return [super init];
|
||||
}
|
||||
|
||||
#if 0
|
||||
- (void) close
|
||||
{
|
||||
/* nothing needed */
|
||||
}
|
||||
#endif
|
||||
|
||||
- (int) writeByte: (unsigned char)b
|
||||
{
|
||||
return [self writeBytes:&b length:1];
|
||||
|
@ -121,29 +107,18 @@
|
|||
return YES;
|
||||
}
|
||||
|
||||
- (int) streamMode
|
||||
- (BOOL) isWritable
|
||||
{
|
||||
return mode;
|
||||
[self notImplemented:_cmd];
|
||||
return NO;
|
||||
}
|
||||
|
||||
#if 0 /* Put this into a StreamStream class? */
|
||||
- initWithStream: (Stream *)s mode: (int)m
|
||||
{
|
||||
if (m == STREAM_READONLY && [s streamMode] == STREAM_READONLY
|
||||
|| m == STREAM_WRITEONLY && [s streamMode] == STREAM_WRITEONLY)
|
||||
[self error:"Streams read/write modes conflict"];
|
||||
[super initWithMode:m];
|
||||
otherStream = s;
|
||||
return self;
|
||||
}
|
||||
#endif
|
||||
|
||||
- (void) encodeWithCoder: anEncoder
|
||||
{
|
||||
[self notImplemented:_cmd];
|
||||
}
|
||||
|
||||
+ newWithCoder: aDecoder
|
||||
- initWithCoder: aDecoder
|
||||
{
|
||||
[self notImplemented:_cmd];
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue