summaryrefslogtreecommitdiff
path: root/Kernel/VM/RangeAllocator.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-25 11:42:49 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-25 16:21:14 +0100
commit17f076d9129e959a0b670562f4e167029bd0a4fa (patch)
tree868e5509668e754fbbccc31c315d1d66695bebb6 /Kernel/VM/RangeAllocator.cpp
parentc11511a0aba0745aae4175d2566466462777b9e5 (diff)
downloadserenity-17f076d9129e959a0b670562f4e167029bd0a4fa.zip
Kernel: Move the VM Range class to its own files
Diffstat (limited to 'Kernel/VM/RangeAllocator.cpp')
-rw-r--r--Kernel/VM/RangeAllocator.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/Kernel/VM/RangeAllocator.cpp b/Kernel/VM/RangeAllocator.cpp
index 1675e6946a..6ac0e045f9 100644
--- a/Kernel/VM/RangeAllocator.cpp
+++ b/Kernel/VM/RangeAllocator.cpp
@@ -66,20 +66,6 @@ void RangeAllocator::dump() const
}
}
-Vector<Range, 2> Range::carve(const Range& taken)
-{
- VERIFY((taken.size() % PAGE_SIZE) == 0);
-
- Vector<Range, 2> parts;
- if (taken == *this)
- return {};
- if (taken.base() > base())
- parts.append({ base(), taken.base().get() - base().get() });
- if (taken.end() < end())
- parts.append({ taken.end(), end().get() - taken.end().get() });
- return parts;
-}
-
void RangeAllocator::carve_at_index(int index, const Range& range)
{
VERIFY(m_lock.is_locked());