aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-04 02:17:44 -0400
committerGitHub <noreply@github.com>2018-08-04 02:17:44 -0400
commita8755cb738b039e27e7d811f589ec77d7b76c336 (patch)
tree556306b92701b703071ae89e9f3ac361b16d61c4 /src/core/memory.cpp
parent017fa55c0a7ca5e37fe772ec1ac0e9ec669f1bce (diff)
parent0e92e67e064feeb485af9e95a1c9c5d21630bfa3 (diff)
Merge pull request #913 from lioncash/unused-func
memory: Remove unused GetSpecialHandlers() function
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 0d41b25275..4b3bb7b31a 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -99,22 +99,6 @@ void RemoveDebugHook(PageTable& page_table, VAddr base, u64 size, MemoryHookPoin
}
/**
- * This function should only be called for virtual addreses with attribute `PageType::Special`.
- */
-static std::set<MemoryHookPointer> GetSpecialHandlers(const PageTable& page_table, VAddr vaddr,
- u64 size) {
- std::set<MemoryHookPointer> result;
- auto interval = boost::icl::discrete_interval<VAddr>::closed(vaddr, vaddr + size - 1);
- auto interval_list = page_table.special_regions.equal_range(interval);
- for (auto it = interval_list.first; it != interval_list.second; ++it) {
- for (const auto& region : it->second) {
- result.insert(region.handler);
- }
- }
- return result;
-}
-
-/**
* Gets a pointer to the exact memory at the virtual address (i.e. not page aligned)
* using a VMA from the current process
*/