@@ -83,11 +83,7 @@ - (BOOL)isMutable
8383
8484- (NSPointerArray *)makeBacking
8585{
86- #ifdef GNUSTEP
87- return [NSPointerArray pointerArrayWithStrongObjects ];
88- #else
8986 return [NSPointerArray strongObjectsPointerArray ];
90- #endif
9187}
9288
9389- (instancetype )init
@@ -250,7 +246,7 @@ - (void)insertObject: (id)anObject atIndex: (NSUInteger)index
250246 COThrowExceptionIfNotMutable (_permanentlyMutable, _temporaryMutable);
251247 COThrowExceptionIfOutOfBounds (self, index, YES );
252248
253- // NSPointerArray on 10.7 doesn't allow inserting at the end using index == count, so
249+ // NSPointerArray on 10.9 (at least) doesn't allow inserting at the end using index == count, so
254250 // call addPointer in that case as a workaround.
255251 if (index == _externalIndexToBackingIndex.count )
256252 {
@@ -366,20 +362,12 @@ @implementation COUnsafeRetainedMutableArray
366362
367363- (NSPointerArray *)makeBacking
368364{
369- #ifdef GNUSTEP
370- return [NSPointerArray pointerArrayWithWeakObjects ];
371- #else
372365 return [NSPointerArray weakObjectsPointerArray ];
373- #endif
374366}
375367
376368- (NSHashTable *)makeBackingHashTable
377369{
378- #ifdef GNUSTEP
379- return [NSHashTable hashTableWithWeakObjects ];
380- #else
381370 return [NSHashTable weakObjectsHashTable ];
382- #endif
383371}
384372
385373- (instancetype )initWithObjects : (const id [])objects count : (NSUInteger )count
@@ -672,11 +660,7 @@ @implementation COUnsafeRetainedMutableSet
672660
673661- (NSHashTable *)makeBacking
674662{
675- #ifdef GNUSTEP
676- return [NSHashTable hashTableWithWeakObjects ];
677- #else
678663 return [NSHashTable weakObjectsHashTable ];
679- #endif
680664}
681665
682666@end
0 commit comments