Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

common/thread: Remove unused CurrentThreadId()

Lioncashc8c46d02784b
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) {
diff --git a/src/common/thread.h b/src/common/thread.h
index 6cbdb96a3f..c208090217 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -13,8 +13,6 @@
namespace Common {
-int CurrentThreadId();
-
void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask);
void SetCurrentThreadAffinity(u32 mask);