@@ -50,33 +50,11 @@ + (instancetype)alloc { OF_UNRECOGNIZED_SELECTOR } -- (instancetype)retain -{ - return self; -} - -- (instancetype)autorelease -{ - return self; -} - -- (unsigned int)retainCount -{ - return OFMaxRetainCount; -} - -- (void)release -{ -} - -- (void)dealloc -{ - OF_DEALLOC_UNSUPPORTED -} +OF_SINGLETON_METHODS @end @implementation OFConstantString + (void)load { @@ -133,33 +111,11 @@ + (instancetype)alloc { OF_UNRECOGNIZED_SELECTOR } -- (instancetype)retain -{ - return self; -} - -- (instancetype)autorelease -{ - return self; -} - -- (unsigned int)retainCount -{ - return OFMaxRetainCount; -} - -- (void)release -{ -} - -- (void)dealloc -{ - OF_DEALLOC_UNSUPPORTED -} +OF_SINGLETON_METHODS /* * In all following methods, the constant string is converted to an * OFConstantUTF8String and the message sent again. */