From 11b628f2504bccbdba0cdad89f62a604e8d500c6 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Mon, 18 Mar 2024 07:18:41 -0700 Subject: [PATCH] Core: Remove Unused IsRunningInCurrentThread Function --- Source/Core/Core/Core.cpp | 5 ----- Source/Core/Core/Core.h | 5 ++--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index c7c392fa0e..99a3ee6e9a 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -210,11 +210,6 @@ bool IsRunningAndStarted() return s_is_started && !s_is_stopping; } -bool IsRunningInCurrentThread() -{ - return IsRunning() && IsCPUThread(); -} - bool IsCPUThread() { return tls_is_cpu_thread; diff --git a/Source/Core/Core/Core.h b/Source/Core/Core/Core.h index 90346d2cac..ab5ffe6226 100644 --- a/Source/Core/Core/Core.h +++ b/Source/Core/Core/Core.h @@ -138,9 +138,8 @@ void UndeclareAsHostThread(); std::string StopMessage(bool main_thread, std::string_view message); bool IsRunning(); -bool IsRunningAndStarted(); // is running and the CPU loop has been entered -bool IsRunningInCurrentThread(); // this tells us whether we are running in the CPU thread. -bool IsCPUThread(); // this tells us whether we are the CPU thread. +bool IsRunningAndStarted(); // is running and the CPU loop has been entered +bool IsCPUThread(); // this tells us whether we are the CPU thread. bool IsGPUThread(); bool IsHostThread();