@@ -14,17 +14,16 @@ * file. */ #include "config.h" -#include - #import "OFBindFailedException.h" #import "OFString.h" #import "OFTCPSocket.h" #import "common.h" +#import "macros.h" @implementation OFBindFailedException + (instancetype)exceptionWithHost: (OFString*)host port: (uint16_t)port socket: (OFTCPSocket*)socket @@ -34,18 +33,11 @@ socket: socket] autorelease]; } - init { - @try { - [self doesNotRecognizeSelector: _cmd]; - } @catch (id e) { - [self release]; - @throw e; - } - - abort(); + OF_INVALID_INIT_METHOD } - initWithHost: (OFString*)host port: (uint16_t)port socket: (OFTCPSocket*)socket