mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-24 01:11:01 +00:00
(initialize): return void.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@101 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
96c0156514
commit
f4dd9d8cc8
5 changed files with 5 additions and 40 deletions
15
Source/Bag.m
15
Source/Bag.m
|
@ -26,11 +26,10 @@
|
|||
|
||||
@implementation Bag
|
||||
|
||||
+ initialize
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [Bag class])
|
||||
[self setVersion:0]; /* beta release */
|
||||
return self;
|
||||
}
|
||||
|
||||
// INITIALIZING AND FREEING;
|
||||
|
@ -71,18 +70,6 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- freeObjects
|
||||
{
|
||||
if (CONTAINS_OBJECTS)
|
||||
{
|
||||
[self makeObjectsPerform:@selector(free)];
|
||||
[self empty];
|
||||
}
|
||||
else
|
||||
[self empty];
|
||||
return self;
|
||||
}
|
||||
|
||||
// ADDING;
|
||||
|
||||
- addElement: (elt)newElement withOccurrences: (unsigned)count
|
||||
|
|
|
@ -33,14 +33,13 @@ static id nilBinaryTreeNode;
|
|||
|
||||
@implementation BinaryTree
|
||||
|
||||
+ initialize
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [BinaryTree class])
|
||||
{
|
||||
[self setVersion:0]; /* beta release */
|
||||
nilBinaryTreeNode = [[BinaryTreeNode alloc] init];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
/* This is the designated initializer of this class */
|
||||
|
|
|
@ -26,11 +26,10 @@
|
|||
|
||||
@implementation BinaryTreeEltNode
|
||||
|
||||
+ initialize
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [BinaryTreeEltNode class])
|
||||
[self setVersion:0]; /* beta release */
|
||||
return self;
|
||||
}
|
||||
|
||||
#include <objects/EltNode-m>
|
||||
|
|
|
@ -25,11 +25,10 @@
|
|||
|
||||
@implementation BinaryTreeNode
|
||||
|
||||
+ initialize
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [BinaryTreeNode class])
|
||||
[self setVersion:0]; /* beta release */
|
||||
return self;
|
||||
}
|
||||
|
||||
- init
|
||||
|
@ -56,24 +55,6 @@
|
|||
return n;
|
||||
}
|
||||
|
||||
- write: (TypedStream*)aStream
|
||||
{
|
||||
[super write:aStream];
|
||||
objc_write_object_reference(aStream, _right);
|
||||
objc_write_object_reference(aStream, _left);
|
||||
objc_write_object_reference(aStream, _parent);
|
||||
return self;
|
||||
}
|
||||
|
||||
- read: (TypedStream*)aStream
|
||||
{
|
||||
[super read:aStream];
|
||||
objc_read_object(aStream, &_right);
|
||||
objc_read_object(aStream, &_left);
|
||||
objc_read_object(aStream, &_parent);
|
||||
return self;
|
||||
}
|
||||
|
||||
- leftNode
|
||||
{
|
||||
return _left;
|
||||
|
|
|
@ -27,11 +27,10 @@
|
|||
|
||||
@implementation CircularArray
|
||||
|
||||
+ initialize
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [CircularArray class])
|
||||
[self setVersion:0]; /* beta release */
|
||||
return self;
|
||||
}
|
||||
|
||||
/* This is the designated initializer of this class */
|
||||
|
|
Loading…
Reference in a new issue