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> 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> Region::try_create_kernel_only(VirtualRange const& range, NonnullRefPtr vmobject, size_t offset_in_vmobject, OwnPtr 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()) diff --git a/Kernel/Memory/Region.h b/Kernel/Memory/Region.h index 1e2eb64766..aef490388e 100644 --- a/Kernel/Memory/Region.h +++ b/Kernel/Memory/Region.h @@ -55,7 +55,6 @@ public: }; static ErrorOr> try_create_user_accessible(VirtualRange const&, NonnullRefPtr, size_t offset_in_vmobject, OwnPtr name, Region::Access access, Cacheable, bool shared); - static ErrorOr> try_create_kernel_only(VirtualRange const&, NonnullRefPtr, size_t offset_in_vmobject, OwnPtr name, Region::Access access, Cacheable = Cacheable::Yes); static ErrorOr> create_unbacked(); static ErrorOr> create_unplaced(NonnullRefPtr, size_t offset_in_vmobject, OwnPtr name, Region::Access access, Cacheable = Cacheable::Yes, bool shared = false);