diff options
| author | Sepalani <sepalani@hotmail.fr> | 2020-08-27 21:07:42 +0400 |
|---|---|---|
| committer | Sepalani <sepalani@hotmail.fr> | 2020-08-27 21:07:42 +0400 |
| commit | 79bfb48d68a96551c227fc63aaf56f39e1a15369 (patch) | |
| tree | 22951e3828908140a40634cd983923a95046ab7f /Source | |
| parent | afd25de85ef836ca376d84062e48674d2a5218d9 (diff) | |
HLE: Remove unused function
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/HLE/HLE.cpp | 15 | ||||
| -rw-r--r-- | Source/Core/Core/HLE/HLE.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/Source/Core/Core/HLE/HLE.cpp b/Source/Core/Core/HLE/HLE.cpp index 8e220ef526..e94479b22f 100644 --- a/Source/Core/Core/HLE/HLE.cpp +++ b/Source/Core/Core/HLE/HLE.cpp @@ -255,19 +255,4 @@ u32 UnPatch(std::string_view patch_name) return 0; } - -bool UnPatch(u32 addr, std::string_view name) -{ - auto itr = s_original_instructions.find(addr); - if (itr == s_original_instructions.end()) - return false; - - if (!name.empty() && name != OSPatches[itr->second].m_szPatchName) - return false; - - s_original_instructions.erase(itr); - PowerPC::ppcState.iCache.Invalidate(addr); - return true; -} - } // end of namespace HLE diff --git a/Source/Core/Core/HLE/HLE.h b/Source/Core/Core/HLE/HLE.h index 6e07b832a7..2d5b8ce0e8 100644 --- a/Source/Core/Core/HLE/HLE.h +++ b/Source/Core/Core/HLE/HLE.h @@ -31,7 +31,6 @@ void Reload(); void Patch(u32 pc, std::string_view func_name); u32 UnPatch(std::string_view patch_name); -bool UnPatch(u32 addr, std::string_view name = {}); void Execute(u32 _CurrentPC, u32 _Instruction); // Returns the HLE function index if the address is located in the function |
