From 2b337aec58a3028d4ea985f10b93128f203b01db Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Thu, 4 Apr 2024 21:15:14 -0700 Subject: [PATCH] PowerPC: Remove Dead Config Code --- Source/Core/Core/PowerPC/PowerPC.cpp | 26 -------------------------- Source/Core/Core/PowerPC/PowerPC.h | 5 ----- 2 files changed, 31 deletions(-) diff --git a/Source/Core/Core/PowerPC/PowerPC.cpp b/Source/Core/Core/PowerPC/PowerPC.cpp index 127eff4ddf..9208f87b5f 100644 --- a/Source/Core/Core/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/PowerPC/PowerPC.cpp @@ -5,8 +5,6 @@ #include #include -#include -#include #include #include @@ -61,30 +59,6 @@ static void InvalidateCacheThreadSafe(Core::System& system, u64 userdata, s64 cy static_cast(userdata)); } -std::istream& operator>>(std::istream& is, CPUCore& core) -{ - std::underlying_type_t val{}; - - if (is >> val) - { - core = static_cast(val); - } - else - { - // Upon failure, fall back to the cached interpreter - // to ensure we always initialize our core reference. - core = CPUCore::CachedInterpreter; - } - - return is; -} - -std::ostream& operator<<(std::ostream& os, CPUCore core) -{ - os << static_cast>(core); - return os; -} - PowerPCManager::PowerPCManager(Core::System& system) : m_breakpoints(system), m_memchecks(system), m_debug_interface(system, m_symbol_db), m_system(system) diff --git a/Source/Core/Core/PowerPC/PowerPC.h b/Source/Core/Core/PowerPC/PowerPC.h index e4d00ec884..b38c4f5555 100644 --- a/Source/Core/Core/PowerPC/PowerPC.h +++ b/Source/Core/Core/PowerPC/PowerPC.h @@ -5,7 +5,6 @@ #include #include -#include #include #include #include @@ -41,10 +40,6 @@ enum class CPUCore CachedInterpreter = 5, }; -// For reading from and writing to our config. -std::istream& operator>>(std::istream& is, CPUCore& core); -std::ostream& operator<<(std::ostream& os, CPUCore core); - enum class CoreMode { Interpreter,