@@ -92,11 +92,12 @@ @implementation OFCountedSet + (void)initialize { if (self == [OFCountedSet class]) - placeholder.isa = [OFCountedSetPlaceholder class]; + object_setClass((id)&placeholder, + [OFCountedSetPlaceholder class]); } + (instancetype)alloc { if (self == [OFCountedSet class]) @@ -103,26 +104,10 @@ return (id)&placeholder; return [super alloc]; } -- (instancetype)init -{ - if ([self isMemberOfClass: [OFCountedSet class]]) { - @try { - [self doesNotRecognizeSelector: _cmd]; - } @catch (id e) { - [self release]; - @throw e; - } - - abort(); - } - - return [super init]; -} - - (size_t)countForObject: (id)object { OF_UNRECOGNIZED_SELECTOR }