@@ -14,34 +14,26 @@ * file. */ #include "config.h" -#include - #import "OFAcceptFailedException.h" #import "OFString.h" #import "OFTCPSocket.h" #import "common.h" +#import "macros.h" @implementation OFAcceptFailedException + (instancetype)exceptionWithSocket: (OFTCPSocket*)socket { return [[[self alloc] initWithSocket: socket] autorelease]; } - init { - @try { - [self doesNotRecognizeSelector: _cmd]; - } @catch (id e) { - [self release]; - @throw e; - } - - abort(); + OF_INVALID_INIT_METHOD } - initWithSocket: (OFTCPSocket*)socket { self = [super init];