aboutsummaryrefslogtreecommitdiff
path: root/src/common/thread.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-21 21:37:08 -0500
committerLioncash <mathew1800@gmail.com>2018-11-21 21:37:11 -0500
commitc8c46d02784bef529833293fd4deb4b1aebe9d0c (patch)
treede02ae222ca6e3110fa20e6f752a4e18d1f08262 /src/common/thread.cpp
parent6224fcba62d555ddeca918a4170e15020cabd588 (diff)
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.
Diffstat (limited to 'src/common/thread.cpp')
-rw-r--r--src/common/thread.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index 9e207118fd..a7267b6374 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) {