From 1429025e5dc3fde105a70a302a5e86d72119e87b Mon Sep 17 00:00:00 2001 From: mccallum Date: Sun, 24 Nov 1996 18:27:58 +0000 Subject: [PATCH] ([NSGCString -emptyCopy]): Method removed. It was part of the Collecting protocol. ([NSGMutableCString -emptyCopy:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1947 72102866-910b-0410-8b05-ffd578937521 --- Source/NSGCString.m | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Source/NSGCString.m b/Source/NSGCString.m index aea213351..45137eb15 100644 --- a/Source/NSGCString.m +++ b/Source/NSGCString.m @@ -79,16 +79,6 @@ return self; } -/* Empty copy must empty an allocCopy'ed version of self */ -- emptyCopy -{ - NSGCString *copy = [super emptyCopy]; - OBJC_MALLOC(copy->_contents_chars, char, _count+1); - copy->_count = 0; - copy->_contents_chars[0] = '\0'; - return copy; -} - - (const char *) cString { char *r; @@ -289,16 +279,6 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self, /* For IndexedCollecting protocol */ -/* Empty copy must empty an allocCopy'ed version of self */ -- emptyCopy -{ - NSGMutableCString *copy = [super emptyCopy]; - OBJC_MALLOC(copy->_contents_chars, char, _count+1); - copy->_count = 0; - copy->_contents_chars[0] = '\0'; - return copy; -} - - (char) charAtIndex: (unsigned)index { CHECK_INDEX_RANGE_ERROR(index, _count);