@@ -14,17 +14,16 @@ * file. */ #include "config.h" -#include - #import "OFUnboundPrefixException.h" #import "OFString.h" #import "OFXMLParser.h" #import "common.h" +#import "macros.h" @implementation OFUnboundPrefixException + (instancetype)exceptionWithPrefix: (OFString*)prefix parser: (OFXMLParser*)parser { @@ -32,18 +31,11 @@ parser: parser] autorelease]; } - init { - @try { - [self doesNotRecognizeSelector: _cmd]; - } @catch (id e) { - [self release]; - @throw e; - } - - abort(); + OF_INVALID_INIT_METHOD } - initWithPrefix: (OFString*)prefix parser: (OFXMLParser*)parser {