diff --git a/Source/NSOrderedSet.m b/Source/NSOrderedSet.m index c20a877d5..950a05967 100644 --- a/Source/NSOrderedSet.m +++ b/Source/NSOrderedSet.m @@ -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