mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Housekeeping - typecasts to avoid warnings and removal of redundant methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2870 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
86dbd2aa63
commit
fa0f1a19ca
16 changed files with 34 additions and 61 deletions
|
@ -737,11 +737,6 @@ readContentsOfFile(NSString* path, void** buf, unsigned* len)
|
|||
intBuffer[i] = NSSwapBigIntToHost (intBuffer[i]);
|
||||
}
|
||||
|
||||
- (id) copy
|
||||
{
|
||||
return [self copyWithZone: NSDefaultMallocZone()];
|
||||
}
|
||||
|
||||
- (id) copyWithZone: (NSZone*)zone
|
||||
{
|
||||
if (NSShouldRetainWithZone(self, zone) &&
|
||||
|
@ -752,11 +747,6 @@ readContentsOfFile(NSString* path, void** buf, unsigned* len)
|
|||
initWithBytes: [self bytes] length: [self length]];
|
||||
}
|
||||
|
||||
- (id) mutableCopy
|
||||
{
|
||||
return [self mutableCopyWithZone: NSDefaultMallocZone()];
|
||||
}
|
||||
|
||||
- (id) mutableCopyWithZone: (NSZone*)zone
|
||||
{
|
||||
return [[NSMutableDataMalloc allocWithZone: zone]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue