Index: src/OFObject.h ================================================================== --- src/OFObject.h +++ src/OFObject.h @@ -479,16 +479,10 @@ * * @return The allocated object */ + (instancetype)alloc; -/*! - * @brief Allocates memory for a new instance and calls @ref init on it. - * @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 @@ -283,15 +283,10 @@ + (instancetype)alloc { return of_alloc_object(self, 0, 0, NULL); } -+ (instancetype)new -{ - return [[self alloc] init]; -} - + (Class)class { return self; }