diff --git a/ruamoko/lib/Array+Private.r b/ruamoko/lib/Array+Private.r index 42fefdd05..bc0000fff 100644 --- a/ruamoko/lib/Array+Private.r +++ b/ruamoko/lib/Array+Private.r @@ -1,6 +1,5 @@ #include "Array+Private.h" -#if 0 @implementation Array (Private) /** @@ -32,4 +31,3 @@ } @end -#endif diff --git a/ruamoko/lib/Array.r b/ruamoko/lib/Array.r index 15d3aa2ff..392f99bda 100644 --- a/ruamoko/lib/Array.r +++ b/ruamoko/lib/Array.r @@ -1,7 +1,6 @@ #include "math.h" #include "Array.h" -#include "Array+Private.h" #define STANDARD_CAPACITY 16 #define ARRAY_MAX_GRANULARITY 100 @@ -371,36 +370,3 @@ } @end - - -@implementation Array (Private) - -/** - This is a somewhat dangerous thing to do, and it's only done so that we can - use an Array to implement AutoreleasePool. -*/ -- (void) addObjectNoRetain: (id)anObject -{ - if (count == capacity) { - capacity += granularity; - _objs = (id [])obj_realloc (_objs, capacity * @sizeof (id)); - } - _objs[count++] = anObject; -} - -- (void) removeObjectNoRelease: (id)anObject -{ - local unsigned i = count; - local unsigned tmp; - - do { - if (_objs[--i] == anObject) { - for (tmp = i; tmp < count; tmp++) { - _objs[tmp] = _objs[tmp + 1]; - } - count--; - } - } while (i); -} - -@end