From 055726ecf5e0e0160da0986ebdb38cafa6b9806f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 11 Jul 2021 15:21:30 +0200 Subject: Kernel: Remove unused MemoryManager::find_region_from_vaddr() --- Kernel/VM/MemoryManager.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Kernel/VM/MemoryManager.cpp') diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index e5b578ada7..613dd2f6c2 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -593,14 +593,6 @@ Region* MemoryManager::find_user_region_from_vaddr(Space& space, VirtualAddress return space.find_region_containing({ vaddr, 1 }); } -Region* MemoryManager::find_region_from_vaddr(Space& space, VirtualAddress vaddr) -{ - ScopedSpinLock lock(s_mm_lock); - if (auto* region = find_user_region_from_vaddr(space, vaddr)) - return region; - return kernel_region_from_vaddr(vaddr); -} - Region* MemoryManager::find_region_from_vaddr(VirtualAddress vaddr) { ScopedSpinLock lock(s_mm_lock); -- cgit v1.2.3