summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-09-21 15:32:52 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-09-21 15:33:40 -0700
commit671958f141c8f98fcf7b6e14142a473a4e24ea43 (patch)
tree55a806e6cd775f210a7674c844f2ce55b9d82d6b /Source/Core
parent3b9a70a4359cf64fc266be1b73107c64f0d602e5 (diff)
GeckoCode: Remove Dead Code
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/GeckoCode.cpp8
-rw-r--r--Source/Core/Core/GeckoCode.h2
2 files changed, 0 insertions, 10 deletions
diff --git a/Source/Core/Core/GeckoCode.cpp b/Source/Core/Core/GeckoCode.cpp
index 046a69cfc3..2eba52a365 100644
--- a/Source/Core/Core/GeckoCode.cpp
+++ b/Source/Core/Core/GeckoCode.cpp
@@ -45,14 +45,6 @@ bool operator!=(const GeckoCode::Code& lhs, const GeckoCode::Code& rhs)
return !operator==(lhs, rhs);
}
-// return true if a code exists
-bool GeckoCode::Exist(u32 address, u32 data) const
-{
- return std::find_if(codes.begin(), codes.end(), [&](const Code& code) {
- return code.address == address && code.data == data;
- }) != codes.end();
-}
-
enum class Installation
{
Uninstalled,
diff --git a/Source/Core/Core/GeckoCode.h b/Source/Core/Core/GeckoCode.h
index ab93e4ffc9..3b4332dcfe 100644
--- a/Source/Core/Core/GeckoCode.h
+++ b/Source/Core/Core/GeckoCode.h
@@ -36,8 +36,6 @@ public:
bool enabled = false;
bool default_enabled = false;
bool user_defined = false;
-
- bool Exist(u32 address, u32 data) const;
};
bool operator==(const GeckoCode& lhs, const GeckoCode& rhs);