From abcb5d069f2152beb477c44aa1e3e8df9294b5cf Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Mon, 20 Mar 2023 12:06:10 -0400 Subject: [PATCH] [Cleanup] Remove FindPatch() from struct_category.cpp and struct_category.h (#3130) # Notes - This is unused. --- common/struct_strategy.cpp | 8 -------- common/struct_strategy.h | 3 --- 2 files changed, 11 deletions(-) diff --git a/common/struct_strategy.cpp b/common/struct_strategy.cpp index 52df20410..ca633143a 100644 --- a/common/struct_strategy.cpp +++ b/common/struct_strategy.cpp @@ -71,14 +71,6 @@ namespace StructStrategyFactory { strategies[first_opcode] = structs; } - const StructStrategy *FindPatch(EmuOpcode first_opcode) { - std::map::const_iterator res; - res = strategies.find(first_opcode); - if(res == strategies.end()) - return(nullptr); - return(res->second); - } - }; diff --git a/common/struct_strategy.h b/common/struct_strategy.h index da4142295..d3f7327ab 100644 --- a/common/struct_strategy.h +++ b/common/struct_strategy.h @@ -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); };