Removed ([-copyWithZone:]) and ([-mutableCopyWithZone:])

(which shiould not exist in NSObject).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2847 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-07-15 12:48:14 +00:00
parent 1a6c0f94c6
commit 2423aef513

View file

@ -28,6 +28,7 @@
#include <objc/Protocol.h>
#include <objc/objc-api.h>
#include <Foundation/NSMethodSignature.h>
#include <gnustep/base/Invocation.h>
#include <Foundation/NSInvocation.h>
#include <Foundation/NSAutoreleasePool.h>
#include <Foundation/NSString.h>
@ -144,19 +145,19 @@ extraRefCount (id anObject)
return NSAllocateObject (self, 0, z);
}
+ (id) copyWithZone: (NSZone*)z
{
return self;
}
+ (id) new
{
return [[self alloc] init];
}
- copyWithZone:(NSZone *)zone
{
return NSCopyObject (self, 0, zone);
}
- (id) copy
{
return [self copyWithZone: NSDefaultMallocZone()];
return [(id)self copyWithZone: NSDefaultMallocZone()];
}
- (void) dealloc
@ -176,14 +177,9 @@ extraRefCount (id anObject)
return self;
}
- mutableCopyWithZone:(NSZone *)zone
{
return [self copyWithZone:zone];
}
- (id) mutableCopy
{
return [self mutableCopyWithZone: NSDefaultMallocZone()];
return [(id)self mutableCopyWithZone: NSDefaultMallocZone()];
}
+ (Class) superclass