[Cleanup] Remove FindPatch() from struct_category.cpp and struct_category.h (#3130)

# Notes
- This is unused.
This commit is contained in:
Alex King authored and GitHub committed 2023-03-20 12:06:10 -04:00
1 parent d6b954a4b9
commit abcb5d069f
2 files changed
-11

No files matched your search

-8
View File
@@ -71,14 +71,6 @@ namespace StructStrategyFactory {
strategies[first_opcode] = structs;
}
const StructStrategy *FindPatch(EmuOpcode first_opcode) {
std::map<EmuOpcode, const StructStrategy *>::const_iterator res;
res = strategies.find(first_opcode);
if(res == strategies.end())
return(nullptr);
return(res->second);
}
};
-3
View File
@@ -43,9 +43,6 @@ protected:
//effectively a singleton, but I decided to do it this way for no apparent reason.
namespace StructStrategyFactory {
void RegisterPatch(EmuOpcode first_opcode, const StructStrategy *structs);
//does NOT return ownership of the strategy.
const StructStrategy *FindPatch(EmuOpcode first_opcode);
};