@@ -14,61 +14,53 @@ * file. */ #include "config.h" -#include - #import "OFAllocFailedException.h" #import "OFString.h" #import "macros.h" @implementation OFAllocFailedException + alloc { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - init { OF_INVALID_INIT_METHOD } - (void*)allocMemoryWithSize: (size_t)size { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)allocMemoryForNItems: (size_t)nitems withSize: (size_t)size { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)resizeMemory: (void*)ptr toSize: (size_t)size { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void*)resizeMemory: (void*)ptr toNItems: (size_t)nitems withSize: (size_t)size { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - (void)freeMemory: (void*)ptr { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR } - retain { return self; @@ -88,12 +80,11 @@ { } - (void)dealloc { - [self doesNotRecognizeSelector: _cmd]; - abort(); + OF_UNRECOGNIZED_SELECTOR /* Get rid of a stupid warning */ [super dealloc]; }