207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
|
return;
}
}
}
- (void)removeObjectAtIndex: (size_t)index
{
id object = [self objectAtIndex: index];
[_array removeItemAtIndex: index];
[object release];
_mutations++;
}
- (void)removeAllObjects
{
id *objects = [_array items];
size_t count = [_array count];
|
>
>
|
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
return;
}
}
}
- (void)removeObjectAtIndex: (size_t)index
{
#ifndef __clang_analyzer__
id object = [self objectAtIndex: index];
[_array removeItemAtIndex: index];
[object release];
_mutations++;
#endif
}
- (void)removeAllObjects
{
id *objects = [_array items];
size_t count = [_array count];
|
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
|
} @finally {
[self freeMemory: copy];
}
}
- (void)removeLastObject
{
size_t count = [_array count];
id object;
if (count == 0)
return;
object = [self objectAtIndex: count - 1];
[_array removeLastItem];
[object release];
_mutations++;
}
- (void)exchangeObjectAtIndex: (size_t)index1
withObjectAtIndex: (size_t)index2
{
id *objects = [_array items];
size_t count = [_array count];
|
>
>
|
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
|
} @finally {
[self freeMemory: copy];
}
}
- (void)removeLastObject
{
#ifndef __clang_analyzer__
size_t count = [_array count];
id object;
if (count == 0)
return;
object = [self objectAtIndex: count - 1];
[_array removeLastItem];
[object release];
_mutations++;
#endif
}
- (void)exchangeObjectAtIndex: (size_t)index1
withObjectAtIndex: (size_t)index2
{
id *objects = [_array items];
size_t count = [_array count];
|