From 72207577b2b3b769b555293867d03308f20e0a7f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 18 Jul 2018 19:55:46 -0400 Subject: core/memory: Remove unused function GetSpecialHandlers() and an unused variable in ZeroBlock() --- src/core/memory.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/core') diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 190ccc25c..a18e27da0 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -115,11 +115,6 @@ static std::set GetSpecialHandlers(const PageTable& page_tabl return result; } -static std::set GetSpecialHandlers(VAddr vaddr, u64 size) { - const PageTable& page_table = Core::CurrentProcess()->vm_manager.page_table; - return GetSpecialHandlers(page_table, vaddr, size); -} - /** * Gets a pointer to the exact memory at the virtual address (i.e. not page aligned) * using a VMA from the current process @@ -587,8 +582,6 @@ void ZeroBlock(const Kernel::Process& process, const VAddr dest_addr, const size size_t page_index = dest_addr >> PAGE_BITS; size_t page_offset = dest_addr & PAGE_MASK; - static const std::array zeros = {}; - while (remaining_size > 0) { const size_t copy_amount = std::min(static_cast(PAGE_SIZE) - page_offset, remaining_size); -- cgit v1.2.3