@@ -14,17 +14,16 @@ * file. */ #include "config.h" -#include - #import "OFSeekFailedException.h" #import "OFString.h" #import "OFSeekableStream.h" #import "common.h" +#import "macros.h" @implementation OFSeekFailedException + (instancetype)exceptionWithStream: (OFSeekableStream*)stream offset: (off_t)offset whence: (int)whence @@ -34,18 +33,11 @@ whence: whence] autorelease]; } - init { - @try { - [self doesNotRecognizeSelector: _cmd]; - } @catch (id e) { - [self release]; - @throw e; - } - - abort(); + OF_INVALID_INIT_METHOD } - initWithStream: (OFSeekableStream*)stream offset: (off_t)offset whence: (int)whence