summaryrefslogtreecommitdiff
path: root/Kernel/Memory/Region.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-04-04 12:34:13 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-04 12:34:13 +0200
commitd1f2d63840f4bad5721c21bd9aed31261b7d89dd (patch)
tree7deb6931b3b85c4b1f7b09dc1f0420d458f74f42 /Kernel/Memory/Region.cpp
parent63ddbaf68aff75f0d4cab25368747cb731b89a8d (diff)
downloadserenity-d1f2d63840f4bad5721c21bd9aed31261b7d89dd.zip
Kernel: Remove unused Region::try_create_kernel_only()
Diffstat (limited to 'Kernel/Memory/Region.cpp')
-rw-r--r--Kernel/Memory/Region.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/Kernel/Memory/Region.cpp b/Kernel/Memory/Region.cpp
index 8f68b6e577..f12ad9d0c5 100644
--- a/Kernel/Memory/Region.cpp
+++ b/Kernel/Memory/Region.cpp
@@ -189,11 +189,6 @@ ErrorOr<NonnullOwnPtr<Region>> Region::try_create_user_accessible(VirtualRange c
return adopt_nonnull_own_or_enomem(new (nothrow) Region(range, move(vmobject), offset_in_vmobject, move(name), access, cacheable, shared));
}
-ErrorOr<NonnullOwnPtr<Region>> Region::try_create_kernel_only(VirtualRange const& range, NonnullRefPtr<VMObject> vmobject, size_t offset_in_vmobject, OwnPtr<KString> name, Region::Access access, Cacheable cacheable)
-{
- return adopt_nonnull_own_or_enomem(new (nothrow) Region(range, move(vmobject), offset_in_vmobject, move(name), access, cacheable, false));
-}
-
bool Region::should_cow(size_t page_index) const
{
if (!vmobject().is_anonymous())