@@ -17,11 +17,11 @@ #import "OFArrayTests.h" @interface CustomArray: OFArray { - OFMutableArray *_array; + OFArray *_array; } @end static OFString *const cArray[] = { @"Foo", @@ -277,46 +277,17 @@ [OFNumber numberWithInt: 2]); } @end @implementation CustomArray -- (instancetype)init -{ - self = [super init]; - - @try { - _array = [[OFMutableArray alloc] init]; - } @catch (id e) { - [self release]; - @throw e; - } - - return self; -} - -- (instancetype)initWithObject: (id)object arguments: (va_list)arguments -{ - self = [super init]; - - @try { - _array = [[OFMutableArray alloc] initWithObject: object - arguments: arguments]; - } @catch (id e) { - [self release]; - @throw e; - } - - return self; -} - - (instancetype)initWithObjects: (id const *)objects count: (size_t)count { self = [super init]; @try { - _array = [[OFMutableArray alloc] initWithObjects: objects - count: count]; + _array = [[OFArray alloc] initWithObjects: objects + count: count]; } @catch (id e) { [self release]; @throw e; }