Index: src/OFObject.h ================================================================== --- src/OFObject.h +++ src/OFObject.h @@ -657,17 +657,10 @@ * object * @throw OFInitializationFailedException The instance could not be constructed */ + (instancetype)alloc; -/** - * @brief Calls @ref alloc on `self` and then `init` on the returned object. - * - * @return An allocated and initialized object - */ -+ (instancetype)new; - /** * @brief Returns the class. * * @return The class */ Index: src/OFObject.m ================================================================== --- src/OFObject.m +++ src/OFObject.m @@ -435,15 +435,10 @@ + (instancetype)alloc { return OFAllocObject(self, 0, 0, NULL); } -+ (instancetype)new -{ - return [[self alloc] init]; -} - + (Class)class { return self; }