Bug 1073003 - Remove an unused function in Nuwa.cpp. r=glandium
authorBotond Ballo <botond@mozilla.com>
Tue, 23 Dec 2014 03:21:39 -0500
changeset 235586 6d55adbfd24d6f80b4868d4b1b4d8c6c8940994a
parent 235585 e186ff7a5b4038b8f96285cc884f2fbd7fe652a9
child 235587 f1ff5ea60279a3f5e7498fe7cb5dffe4d0eda27d
push id366
push usercmanchester@mozilla.com
push dateThu, 08 Jan 2015 16:40:24 +0000
reviewersglandium
bugs1073003
milestone37.0a1
Bug 1073003 - Remove an unused function in Nuwa.cpp. r=glandium
mozglue/build/Nuwa.cpp
--- a/mozglue/build/Nuwa.cpp
+++ b/mozglue/build/Nuwa.cpp
@@ -325,42 +325,16 @@ GetThreadInfo(pthread_t threadID) {
   }
   thread_info_t *tinfo = GetThreadInfoInner(threadID);
   if (sIsNuwaProcess) {
     pthread_mutex_unlock(&sThreadCountLock);
   }
   return tinfo;
 }
 
-/**
- * Get thread info using the specified native thread ID.
- *
- * @return thread_info_t with nativeThreadID == specified threadID
- */
-static thread_info_t*
-GetThreadInfo(pid_t threadID) {
-  if (sIsNuwaProcess) {
-    REAL(pthread_mutex_lock)(&sThreadCountLock);
-  }
-  thread_info_t *thrinfo = nullptr;
-  for (thread_info_t *tinfo = sAllThreads.getFirst();
-       tinfo;
-       tinfo = tinfo->getNext()) {
-    if (tinfo->origNativeThreadID == threadID) {
-      thrinfo = tinfo;
-      break;
-    }
-  }
-  if (sIsNuwaProcess) {
-    pthread_mutex_unlock(&sThreadCountLock);
-  }
-
-  return thrinfo;
-}
-
 #if !defined(HAVE_THREAD_TLS_KEYWORD)
 /**
  * Get thread info of the current thread.
  *
  * @return thread_info_t for the current thread.
  */
 static thread_info_t *
 GetCurThreadInfo() {