Index: src/OFBlock.h ================================================================== --- src/OFBlock.h +++ src/OFBlock.h @@ -75,11 +75,10 @@ } + (Class)class; - copy; - (void)release; -- autorelease; @end @interface OFStackBlock: OFBlock @end Index: src/OFBlock.m ================================================================== --- src/OFBlock.m +++ src/OFBlock.m @@ -212,12 +212,10 @@ } break; } } -static Class autoreleasepool = Nil; - /// \cond internal @implementation OFBlock + (Class)class { return self; @@ -230,21 +228,7 @@ - (void)release { Block_release(self); } - -- autorelease -{ - /* - * Cache OFAutoreleasePool since class lookups are expensive with the - * GNU runtime. - */ - if (autoreleasepool == Nil) - autoreleasepool = [OFAutoreleasePool class]; - - [autoreleasepool addObject: self]; - - return self; -} @end /// \endcond