mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
Kernel: Remove unused variable PhysicalRegion::m_last
This commit is contained in:
parent
4b66692a55
commit
cc5403f77b
2 changed files with 0 additions and 5 deletions
|
@ -102,7 +102,6 @@ Optional<unsigned> 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--;
|
||||
}
|
||||
|
|
|
@ -66,7 +66,6 @@ private:
|
|||
PhysicalAddress m_upper;
|
||||
unsigned m_pages { 0 };
|
||||
unsigned m_used { 0 };
|
||||
unsigned m_last { 0 };
|
||||
Bitmap m_bitmap;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue