Use release' and dealloc' instead of `free'.

(initialize): return void.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@98 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-03-12 19:46:34 +00:00
parent 3041551b0f
commit 65c2a03696
6 changed files with 34 additions and 62 deletions

View file

@ -28,11 +28,10 @@
@implementation Dictionary
+ initialize
+ (void) initialize
{
if (self == [Dictionary class])
[self setVersion:0]; /* beta release */
return self;
}
// MANAGING CAPACITY;
@ -143,22 +142,10 @@
capacity:aCapacity];
}
- free
- (void) dealloc
{
coll_hash_delete(_contents_hash);
return [super free];
}
- freeObjects
{
if (CONTAINS_OBJECTS)
{
[self makeObjectsPerform:@selector(free)];
[self empty];
}
else
[self empty];
return self;
[super dealloc];
}
/* This must work without sending any messages to content objects */