From 59b04c0df6081b5fc02a085b0e950f4ae6c15115 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Aug 2018 14:20:48 -0400 Subject: [PATCH] memory: Remove unused GetSpecialHandlers() function This is just unused code, so we may as well get rid of it. --- src/core/memory.cpp | 16 ---------------- 1 file changed, 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 @@ -98,22 +98,6 @@ void RemoveDebugHook(PageTable& page_table, VAddr base, u64 size, MemoryHookPoin page_table.special_regions.subtract(std::make_pair(interval, std::set{region})); } -/** - * This function should only be called for virtual addreses with attribute `PageType::Special`. - */ -static std::set GetSpecialHandlers(const PageTable& page_table, VAddr vaddr, - u64 size) { - std::set result; - auto interval = boost::icl::discrete_interval::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