summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-19 03:57:13 +0200
committerGitHub <noreply@github.com>2018-07-19 03:57:13 +0200
commit3f932790474ea23d9a8ca5eaeb122b1a4d602678 (patch)
tree0746033e2b9e339405df049b1841f837b183d496 /src
parentMerge pull request #687 from lioncash/instance (diff)
parentcore/memory: Remove unused function GetSpecialHandlers() and an unused variable in ZeroBlock() (diff)
downloadyuzu-3f932790474ea23d9a8ca5eaeb122b1a4d602678.tar
yuzu-3f932790474ea23d9a8ca5eaeb122b1a4d602678.tar.gz
yuzu-3f932790474ea23d9a8ca5eaeb122b1a4d602678.tar.bz2
yuzu-3f932790474ea23d9a8ca5eaeb122b1a4d602678.tar.lz
yuzu-3f932790474ea23d9a8ca5eaeb122b1a4d602678.tar.xz
yuzu-3f932790474ea23d9a8ca5eaeb122b1a4d602678.tar.zst
yuzu-3f932790474ea23d9a8ca5eaeb122b1a4d602678.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/memory.cpp7
1 files changed, 0 insertions, 7 deletions
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<MemoryHookPointer> GetSpecialHandlers(const PageTable& page_tabl
return result;
}
-static std::set<MemoryHookPointer> 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<u8, PAGE_SIZE> zeros = {};
-
while (remaining_size > 0) {
const size_t copy_amount =
std::min(static_cast<size_t>(PAGE_SIZE) - page_offset, remaining_size);