Merge pull request #13067 from mitaclaw/dead-code-3

GeckoCode: Remove Dead Code
This commit is contained in:
Tilka 2024-09-22 05:00:26 +01:00 committed by GitHub
commit 067bdaa3dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 10 deletions

View File

@ -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,

View File

@ -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);