diff options
| author | 2018-08-03 14:20:48 -0400 | |
|---|---|---|
| committer | 2018-08-03 14:20:50 -0400 | |
| commit | 59b04c0df6081b5fc02a085b0e950f4ae6c15115 (patch) | |
| tree | 2e42bf5ee87576748bb8cba8b9ffaa5264de35e8 /src/core/memory.cpp | |
| parent | Merge pull request #908 from lioncash/memory (diff) | |
| download | yuzu-59b04c0df6081b5fc02a085b0e950f4ae6c15115.tar.gz yuzu-59b04c0df6081b5fc02a085b0e950f4ae6c15115.tar.xz yuzu-59b04c0df6081b5fc02a085b0e950f4ae6c15115.zip | |
memory: Remove unused GetSpecialHandlers() function
This is just unused code, so we may as well get rid of it.
Diffstat (limited to 'src/core/memory.cpp')
| -rw-r--r-- | src/core/memory.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 0d41b2527..4b3bb7b31 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 | |||
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | /** | 101 | /** |
| 102 | * This function should only be called for virtual addreses with attribute `PageType::Special`. | ||
| 103 | */ | ||
| 104 | static std::set<MemoryHookPointer> GetSpecialHandlers(const PageTable& page_table, VAddr vaddr, | ||
| 105 | u64 size) { | ||
| 106 | std::set<MemoryHookPointer> result; | ||
| 107 | auto interval = boost::icl::discrete_interval<VAddr>::closed(vaddr, vaddr + size - 1); | ||
| 108 | auto interval_list = page_table.special_regions.equal_range(interval); | ||
| 109 | for (auto it = interval_list.first; it != interval_list.second; ++it) { | ||
| 110 | for (const auto& region : it->second) { | ||
| 111 | result.insert(region.handler); | ||
| 112 | } | ||
| 113 | } | ||
| 114 | return result; | ||
| 115 | } | ||
| 116 | |||
| 117 | /** | ||
| 118 | * Gets a pointer to the exact memory at the virtual address (i.e. not page aligned) | 102 | * Gets a pointer to the exact memory at the virtual address (i.e. not page aligned) |
| 119 | * using a VMA from the current process | 103 | * using a VMA from the current process |
| 120 | */ | 104 | */ |