From 1d555fdd25fd33a6b14df59dc3291905573f142c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 21 Nov 2018 21:37:08 -0500 Subject: common/thread: Remove unused CurrentThreadId() This is an old function that's no longer necessary. C++11 introduced proper threading support to the language and a thread ID can be retrieved via std::this_thread::get_id() if it's ever needed. --- src/common/thread.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/common/thread.cpp') diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 9e207118f..a7267b637 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -25,16 +25,6 @@ namespace Common { -int CurrentThreadId() { -#ifdef _MSC_VER - return GetCurrentThreadId(); -#elif defined __APPLE__ - return mach_thread_self(); -#else - return 0; -#endif -} - #ifdef _WIN32 // Supporting functions void SleepCurrentThread(int ms) { -- cgit v1.2.3