diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-05-04 16:23:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-04 16:23:36 +0200 |
| commit | 0daf4d1281b8bb080ba624bc801c6ea1f563fa12 (patch) | |
| tree | 50428ddc553fd1d004439a9d2ef61cf5be832144 /Source/Core | |
| parent | c442c0d5e5dc993562b43871a7548d64bc82a1ad (diff) | |
| parent | 2b337aec58a3028d4ea985f10b93128f203b01db (diff) | |
Merge pull request #12762 from mitaclaw/dead-config-code
PowerPC: Remove Dead Config Code
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PowerPC/PowerPC.cpp | 26 | ||||
| -rw-r--r-- | Source/Core/Core/PowerPC/PowerPC.h | 5 |
2 files changed, 0 insertions, 31 deletions
diff --git a/Source/Core/Core/PowerPC/PowerPC.cpp b/Source/Core/Core/PowerPC/PowerPC.cpp index 51334ea527..5b32f5c1f5 100644 --- a/Source/Core/Core/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/PowerPC/PowerPC.cpp @@ -6,8 +6,6 @@ #include <algorithm> #include <bit> #include <cstring> -#include <istream> -#include <ostream> #include <type_traits> #include <vector> @@ -61,30 +59,6 @@ static void InvalidateCacheThreadSafe(Core::System& system, u64 userdata, s64 cy static_cast<u32>(userdata)); } -std::istream& operator>>(std::istream& is, CPUCore& core) -{ - std::underlying_type_t<CPUCore> val{}; - - if (is >> val) - { - core = static_cast<CPUCore>(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<std::underlying_type_t<CPUCore>>(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 <array> #include <cstddef> -#include <iosfwd> #include <span> #include <tuple> #include <type_traits> @@ -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, |
