aboutsummaryrefslogtreecommitdiff
path: root/DebugUtils/GTMDebugThreadValidation.m
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2016-04-29 13:51:31 -0400
committerGravatar Thomas Van Lenten <thomasvl@google.com>2016-04-29 13:51:31 -0400
commit7331352a30da15c92f942d07ed1a1a7db8e61250 (patch)
treef1b0df239232010b987b75eb1c3b940c95e499d8 /DebugUtils/GTMDebugThreadValidation.m
parent91fdd6d09d6390b67ff3258b6418437dca11d6e1 (diff)
Update GTMDebugThreadValidation with general queue support.
Diffstat (limited to 'DebugUtils/GTMDebugThreadValidation.m')
-rw-r--r--DebugUtils/GTMDebugThreadValidation.m22
1 files changed, 2 insertions, 20 deletions
diff --git a/DebugUtils/GTMDebugThreadValidation.m b/DebugUtils/GTMDebugThreadValidation.m
index 30ee757..f2af8a0 100644
--- a/DebugUtils/GTMDebugThreadValidation.m
+++ b/DebugUtils/GTMDebugThreadValidation.m
@@ -1,7 +1,7 @@
//
// GTMDebugThreadValidation.m
//
-// Copyright 2008 Google Inc.
+// Copyright 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
@@ -16,22 +16,4 @@
// the License.
//
-#import "GTMDebugThreadValidation.h"
-
-#if DEBUG && MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
-
-static NSThread *gGTMMainThread = nil;
-
-static __attribute__((constructor)) void _GTMInitThread(void) {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- gGTMMainThread = [NSThread currentThread];
- [gGTMMainThread retain];
- [pool release];
-}
-
-
-BOOL _GTMIsRunningOnMainThread(void) {
- return [[NSThread currentThread] isEqual:gGTMMainThread];
-}
-
-#endif // DEBUG && MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
+// No implementation source currently needed.