mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Simplify removeObjectsAtIndexes:
This commit is contained in:
parent
80843a9e4b
commit
b4f0e75375
1 changed files with 2 additions and 9 deletions
|
@ -1456,15 +1456,8 @@ static SEL remSel;
|
|||
maxCount: count
|
||||
inIndexRange: NULL];
|
||||
|
||||
if (count > 0)
|
||||
{
|
||||
IMP rem = [self methodForSelector: remSel];
|
||||
|
||||
while (count--)
|
||||
{
|
||||
(*rem)(self, remSel, indexArray[count]);
|
||||
}
|
||||
}
|
||||
[self _removeObjectsFromIndices: indexArray
|
||||
numIndices: count];
|
||||
}
|
||||
|
||||
- (void) removeObjectsInArray: (NSArray *)otherArray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue