@@ -219,24 +219,15 @@ } - (void)insertObjectsFromArray: (OFArray*)array atIndex: (size_t)index { - void *pool = objc_autoreleasePoolPush(); - OFEnumerator *enumerator = [array objectEnumerator]; - size_t i, count = [array count]; - - for (i = 0; i < count; i++) { - id object = [enumerator nextObject]; - - assert(object != nil); - + size_t i = 0; + + for (id object in array) [self insertObject: object - atIndex: index + i]; - } - - objc_autoreleasePoolPop(pool); + atIndex: index + i++]; } - (void)replaceObjectAtIndex: (size_t)index withObject: (id)object {