From 16cd86b8455363fd393c0be68d76c2ae19eb3f10 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 7 Sep 2021 15:58:18 +0200 Subject: Kernel: Remove some unused KBuffer functions --- Kernel/KBuffer.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'Kernel/KBuffer.h') diff --git a/Kernel/KBuffer.h b/Kernel/KBuffer.h index b8a1664ef5..a2b8ffe777 100644 --- a/Kernel/KBuffer.h +++ b/Kernel/KBuffer.h @@ -89,11 +89,6 @@ private: class [[nodiscard]] KBuffer { public: - explicit KBuffer(RefPtr&& impl) - : m_impl(move(impl)) - { - } - static KResultOr> try_create_with_size(size_t size, Memory::Region::Access access = Memory::Region::Access::ReadWrite, StringView name = "KBuffer", AllocationStrategy strategy = AllocationStrategy::Reserve) { auto impl = KBufferImpl::try_create_with_size(size, access, name, strategy); @@ -132,14 +127,13 @@ public: [[nodiscard]] KBufferImpl& impl() { return *m_impl; } [[nodiscard]] const KBufferImpl& impl() const { return *m_impl; } - [[nodiscard]] RefPtr take_impl() { return move(m_impl); } - KBuffer(const ByteBuffer& buffer, Memory::Region::Access access = Memory::Region::Access::ReadWrite, StringView name = "KBuffer") - : m_impl(KBufferImpl::copy(buffer.data(), buffer.size(), access, name)) +private: + explicit KBuffer(RefPtr&& impl) + : m_impl(move(impl)) { } -private: RefPtr m_impl; }; -- cgit v1.2.3