From cc5403f77bba64f8195a341e35a652e221e477e0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 30 Aug 2020 13:13:55 +0200 Subject: [PATCH] Kernel: Remove unused variable PhysicalRegion::m_last --- Kernel/VM/PhysicalRegion.cpp | 4 ---- Kernel/VM/PhysicalRegion.h | 1 - 2 files changed, 5 deletions(-) diff --git a/Kernel/VM/PhysicalRegion.cpp b/Kernel/VM/PhysicalRegion.cpp index bb19f11f3d..26439c9de7 100644 --- a/Kernel/VM/PhysicalRegion.cpp +++ b/Kernel/VM/PhysicalRegion.cpp @@ -102,7 +102,6 @@ Optional PhysicalRegion::find_and_allocate_contiguous_range(size_t cou m_bitmap.set(page_index, true); } m_used += count; - m_last = page + count; return page; } return {}; @@ -131,9 +130,6 @@ void PhysicalRegion::return_page_at(PhysicalAddress addr) ASSERT((FlatPtr)local_offset < (FlatPtr)(m_pages * PAGE_SIZE)); auto page = (FlatPtr)local_offset / PAGE_SIZE; - if (page < m_last) - m_last = page; - m_bitmap.set(page, false); m_used--; } diff --git a/Kernel/VM/PhysicalRegion.h b/Kernel/VM/PhysicalRegion.h index bd43d22fea..dff192586e 100644 --- a/Kernel/VM/PhysicalRegion.h +++ b/Kernel/VM/PhysicalRegion.h @@ -66,7 +66,6 @@ private: PhysicalAddress m_upper; unsigned m_pages { 0 }; unsigned m_used { 0 }; - unsigned m_last { 0 }; Bitmap m_bitmap; };