@@ -14,16 +14,15 @@ * file. */ #include "config.h" -#include - #import "OFChangeOwnerFailedException.h" #import "OFString.h" #import "common.h" +#import "macros.h" #ifdef OF_HAVE_CHOWN @implementation OFChangeOwnerFailedException + (instancetype)exceptionWithPath: (OFString*)path owner: (OFString*)owner @@ -34,18 +33,11 @@ group: group] autorelease]; } - init { - @try { - [self doesNotRecognizeSelector: _cmd]; - } @catch (id e) { - [self release]; - @throw e; - } - - abort(); + OF_INVALID_INIT_METHOD } - initWithPath: (OFString*)path owner: (OFString*)owner group: (OFString*)group