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