mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Further simplify. Exception should also be thrown in only one place
This commit is contained in:
parent
d826bb5a25
commit
39465cb904
1 changed files with 1 additions and 9 deletions
|
@ -309,15 +309,7 @@ static Class mutableSetClass;
|
|||
for(i = 0; i < count; i++)
|
||||
{
|
||||
id anObject = objects[i];
|
||||
if (anObject == nil)
|
||||
{
|
||||
NSLog(@"Tried to init an orderedset with a nil object");
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
[self addObject: anObject];
|
||||
}
|
||||
[self addObject: anObject];
|
||||
}
|
||||
}
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue