From 9b8635767148b3f95942593bfeefa86f147d2c53 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Thu, 19 Dec 2013 21:30:10 +0000 Subject: Fix build of Mac GTM project with static analyzer. Remove GTMGarbageCollection. Remove GC build configs. Remove internal dependence on GTMObjectSingleton. DELTA=447 (49 added, 296 deleted, 102 changed) --- Foundation/GTMFileSystemKQueueTest.m | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'Foundation/GTMFileSystemKQueueTest.m') diff --git a/Foundation/GTMFileSystemKQueueTest.m b/Foundation/GTMFileSystemKQueueTest.m index d80f161..a8eec37 100644 --- a/Foundation/GTMFileSystemKQueueTest.m +++ b/Foundation/GTMFileSystemKQueueTest.m @@ -18,7 +18,6 @@ #import "GTMSenTestCase.h" #import "GTMFileSystemKQueue.h" -#import "GTMGarbageCollection.h" #import "GTMUnitTestDevLog.h" @@ -509,15 +508,10 @@ #endif // MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 // Now destroy the queue, with events outstanding from the CFSocket, but - // unconsumed. For GC this involves us using a private method since |helper| - // still has a reference. For non-GC we'll force the release. - if (GTMIsGarbageCollectionEnabled()) { - [testKQ unregisterWithKQueue]; - } else { - STAssertEquals([testKQ retainCount], (NSUInteger)1, nil); - [testKQ release]; - testKQ = nil; - } + // unconsumed. + STAssertEquals([testKQ retainCount], (NSUInteger)1, nil); + [testKQ release]; + testKQ = nil; // Spin the runloop, no events were delivered (and we should not hang) [self spinForEvents:helper]; -- cgit v1.2.3