@@ -96,11 +96,12 @@ @implementation OFMutableSet + (void)initialize { if (self == [OFMutableSet class]) - placeholder.isa = [OFMutableSetPlaceholder class]; + object_setClass((id)&placeholder, + [OFMutableSetPlaceholder class]); } + (instancetype)alloc { if (self == [OFMutableSet class]) @@ -112,25 +113,10 @@ + (instancetype)setWithCapacity: (size_t)capacity { return [[[self alloc] initWithCapacity: capacity] autorelease]; } -- (instancetype)init -{ - if ([self isMemberOfClass: [OFMutableSet class]]) { - @try { - [self doesNotRecognizeSelector: _cmd]; - abort(); - } @catch (id e) { - [self release]; - @throw e; - } - } - - return [super init]; -} - - (instancetype)initWithCapacity: (size_t)capacity { OF_INVALID_INIT_METHOD }