]> git.wincent.com - WOTest.git/commit
Code clean-up for garbage collection
authorWincent Colaiuta <win@wincent.com>
Sat, 11 Aug 2007 13:26:18 +0000 (15:26 +0200)
committerWincent Colaiuta <win@wincent.com>
Sat, 11 Aug 2007 13:26:18 +0000 (15:26 +0200)
commit2eab9a2ebf1bcd8c17dad3c42e91658eea19e796
tree9d25efede5251306fe59219e3b7e03f48478abfa
parent2507142cd0d562bf3fca9a4fb069f47b025d913b
Code clean-up for garbage collection

I've made a pass through the codebase eliminating message sends that have
effectively been turned into no-ops by the move to garbage collection (retain,
release, autorelease), as well as replacing "release" messages sent to
autorelease pools with "drain", replacing the alloc/init pattern with the
straightforward autoreleased alternative where possible (for brevity),
removing methods that will now never be meaningfully called (dealloc, release,
retainCount etc), and switching some accessors over to synthesized properties
where this enabled me to get rid of no-op retain, release and autorelease
message sends.

I also performed some minor reformatting (better wrapping and column
alignment) where the already-mentioned changes touch code which would benefit
from such reformatting (improved readability); there are still plenty of
places in the codebase where the wrapping could be tweaked to make better use
of the full 132 columns.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
30 files changed:
NOTES.txt
NSMethodSignature+WOTest.m
NSString+WOTest.h
NSString+WOTest.m
NSValue+WOTest.m
Tests/NSObjectTests.m
Tests/WOClassMockTests.m
Tests/WOMockTests.m
Tests/WOMultithreadedCrashTests.m
Tests/WOObjectMockTests.m
Tests/WOProtocolMockTests.m
Tests/WOProtocolStubTests.m
Tests/WOStubTests.m
Tests/WOTestSelfTests.m
WOLightweightRoot.h
WOLightweightRoot.m
WOMock.h
WOMock.m
WOObjectMock.m
WOObjectStub.m
WOProtocolMock.m
WOProtocolStub.m
WOStub.h
WOStub.m
WOTest.h
WOTestApplicationTestsController.m
WOTestBundleInjector.m
WOTestClass.m
WOTestLowLevelException.m
WOTestRunner/WOTestRunner.m