mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 18:21:04 +00:00
([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
This commit is contained in:
parent
898ed24d5f
commit
1429025e5d
1 changed files with 0 additions and 20 deletions
|
@ -79,16 +79,6 @@
|
||||||
return self;
|
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
|
- (const char *) cString
|
||||||
{
|
{
|
||||||
char *r;
|
char *r;
|
||||||
|
@ -289,16 +279,6 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self,
|
||||||
|
|
||||||
/* For IndexedCollecting protocol */
|
/* 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
|
- (char) charAtIndex: (unsigned)index
|
||||||
{
|
{
|
||||||
CHECK_INDEX_RANGE_ERROR(index, _count);
|
CHECK_INDEX_RANGE_ERROR(index, _count);
|
||||||
|
|
Loading…
Reference in a new issue