Index: src/OFAutoreleasePool.m ================================================================== --- src/OFAutoreleasePool.m +++ src/OFAutoreleasePool.m @@ -60,12 +60,10 @@ { OFList *pool_list; self = [super init]; - objects = nil; - if ((pool_list = [OFThread objectForTLSKey: pool_list_key]) == nil) { pool_list = [[OFList alloc] initWithoutRetainAndRelease]; [OFThread setObject: pool_list forTLSKey: pool_list_key]; [pool_list release]; Index: src/OFDataArray.m ================================================================== --- src/OFDataArray.m +++ src/OFDataArray.m @@ -47,11 +47,10 @@ andSelector: _cmd]; } data = NULL; itemsize = is; - count = 0; return self; } - (size_t)count @@ -193,11 +192,10 @@ { self = [super initWithItemSize: is]; if (lastpagebyte == 0) lastpagebyte = getpagesize() - 1; - size = 0; return self; } - add: (void*)item Index: src/OFExceptions.m ================================================================== --- src/OFExceptions.m +++ src/OFExceptions.m @@ -66,11 +66,10 @@ - initWithClass: (Class)class_ { self = [super init]; class = class_; - string = nil; return self; } - (void)dealloc Index: src/OFHashes.m ================================================================== --- src/OFHashes.m +++ src/OFHashes.m @@ -127,15 +127,10 @@ buf[0] = 0x67452301; buf[1] = 0xEFCDAB89; buf[2] = 0x98BADCFE; buf[3] = 0x10325476; - bits[0] = 0; - bits[1] = 0; - - calculated = NO; - return self; } - updateWithBuffer: (const char*)buffer ofSize: (size_t)size @@ -365,11 +360,10 @@ - init { self = [super init]; - count = 0; state[0] = 0x67452301; state[1] = 0xEFCDAB89; state[2] = 0x98BADCFE; state[3] = 0x10325476; state[4] = 0xC3D2E1F0; Index: src/OFIterator.m ================================================================== --- src/OFIterator.m +++ src/OFIterator.m @@ -22,11 +22,10 @@ self = [super init]; data = data_; size = size_; - pos = 0; last = NULL; return self; } Index: src/OFList.m ================================================================== --- src/OFList.m +++ src/OFList.m @@ -34,11 +34,10 @@ { self = [super init]; first = NULL; last = NULL; - retain_and_release = NO; return self; } - (void)dealloc Index: src/OFMutableString.m ================================================================== --- src/OFMutableString.m +++ src/OFMutableString.m @@ -101,19 +101,10 @@ return (utf8 ? 1 : 0); } @implementation OFMutableString -- init -{ - [super init]; - - is_utf8 = NO; - - return self; -} - - initWithCString: (const char*)str { Class c; self = [super init]; Index: src/OFSocket.m ================================================================== --- src/OFSocket.m +++ src/OFSocket.m @@ -36,11 +36,10 @@ { self = [super init]; sock = INVALID_SOCKET; saddr = NULL; - saddr_len = 0; return self; } - (size_t)readNBytes: (size_t)size Index: src/OFStream.m ================================================================== --- src/OFStream.m +++ src/OFStream.m @@ -24,11 +24,10 @@ - init { self = [super init]; cache = NULL; - cache_len = 0; return self; } - (size_t)readNBytes: (size_t)size Index: src/OFString.m ================================================================== --- src/OFString.m +++ src/OFString.m @@ -53,11 +53,10 @@ - init { [super init]; - length = 0; string = NULL; return self; } Index: src/OFTCPSocket.m ================================================================== --- src/OFTCPSocket.m +++ src/OFTCPSocket.m @@ -32,11 +32,10 @@ { self = [super init]; sock = INVALID_SOCKET; saddr = NULL; - saddr_len = 0; return self; } - (void)dealloc Index: src/OFThread.m ================================================================== --- src/OFThread.m +++ src/OFThread.m @@ -57,14 +57,12 @@ #endif /* FIXME: Maybe another exception would be better */ @throw [OFInvalidArgumentException newWithClass: self andSelector: _cmd]; - if (obj != nil) - [obj retain]; - if (old != nil) - [old release]; + [obj retain]; + [old release]; return self; } + (id)objectForTLSKey: (OFTLSKey*)key