@@ -130,17 +130,10 @@ #ifdef OF_HAVE_BLOCKS + threadWithBlock: (of_thread_block_t)block { return [[[self alloc] initWithBlock: block] autorelease]; } - -+ threadWithObject: (id)object - block: (of_thread_block_t)block -{ - return [[[self alloc] initWithObject: object - block: block] autorelease]; -} #endif + (void)setObject: (id)object forTLSKey: (OFTLSKey*)key { @@ -266,21 +259,13 @@ } #ifdef OF_HAVE_BLOCKS - initWithBlock: (of_thread_block_t)block_ { - return [self initWithObject: nil - block: block_]; -} - -- initWithObject: (id)object_ - block: (of_thread_block_t)block_ -{ self = [super init]; @try { - object = [object_ retain]; block = [block_ copy]; } @catch (id e) { [self release]; @throw e; }