Index: webrtc/base/thread_darwin.mm |
diff --git a/webrtc/base/thread_darwin.mm b/webrtc/base/thread_darwin.mm |
index 5bcc5c8c06b220a67baad5182789c7c1fe983e47..733e4bf897e2580a2d8a58db2f09b5ff2846152f 100644 |
--- a/webrtc/base/thread_darwin.mm |
+++ b/webrtc/base/thread_darwin.mm |
@@ -40,21 +40,11 @@ namespace rtc { |
ThreadManager::ThreadManager() { |
pthread_key_create(&key_, nullptr); |
-#ifndef NO_MAIN_THREAD_WRAPPING |
- WrapCurrentThread(); |
-#endif |
// This is necessary to alert the cocoa runtime of the fact that |
// we are running in a multithreaded environment. |
InitCocoaMultiThreading(); |
} |
-ThreadManager::~ThreadManager() { |
- @autoreleasepool { |
- UnwrapCurrentThread(); |
- pthread_key_delete(key_); |
- } |
-} |
- |
// static |
void* Thread::PreRun(void* pv) { |
ThreadInit* init = static_cast<ThreadInit*>(pv); |