mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
|
maxCount: count
|
||||||
inIndexRange: NULL];
|
inIndexRange: NULL];
|
||||||
|
|
||||||
if (count > 0)
|
[self _removeObjectsFromIndices: indexArray
|
||||||
{
|
numIndices: count];
|
||||||
IMP rem = [self methodForSelector: remSel];
|
|
||||||
|
|
||||||
while (count--)
|
|
||||||
{
|
|
||||||
(*rem)(self, remSel, indexArray[count]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) removeObjectsInArray: (NSArray *)otherArray
|
- (void) removeObjectsInArray: (NSArray *)otherArray
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue