diff --git a/Kernel/Memory/VMObject.cpp b/Kernel/Memory/VMObject.cpp index a10897fddb..d6d09c888b 100644 --- a/Kernel/Memory/VMObject.cpp +++ b/Kernel/Memory/VMObject.cpp @@ -22,21 +22,11 @@ ErrorOr>> VMObject::try_clone_physical_pages() c return m_physical_pages.try_clone(); } -FixedArray> VMObject::must_clone_physical_pages_but_fixme_should_propagate_errors() const -{ - return MUST(try_clone_physical_pages()); -} - ErrorOr>> VMObject::try_create_physical_pages(size_t size) { return FixedArray>::try_create(ceil_div(size, static_cast(PAGE_SIZE))); } -FixedArray> VMObject::must_create_physical_pages_but_fixme_should_propagate_errors(size_t size) -{ - return MUST(try_create_physical_pages(size)); -} - VMObject::VMObject(FixedArray>&& new_physical_pages) : m_physical_pages(move(new_physical_pages)) { diff --git a/Kernel/Memory/VMObject.h b/Kernel/Memory/VMObject.h index e2c775fd68..24898722a8 100644 --- a/Kernel/Memory/VMObject.h +++ b/Kernel/Memory/VMObject.h @@ -55,9 +55,7 @@ public: protected: static ErrorOr>> try_create_physical_pages(size_t); - static FixedArray> must_create_physical_pages_but_fixme_should_propagate_errors(size_t); ErrorOr>> try_clone_physical_pages() const; - FixedArray> must_clone_physical_pages_but_fixme_should_propagate_errors() const; explicit VMObject(FixedArray>&&); template