Kernel: Remove more unused KBuffer API

This commit is contained in:
Andreas Kling 2021-09-07 16:11:31 +02:00
parent 881923dd47
commit 60b892772f
Notes: sideshowbarker 2024-07-18 05:01:22 +09:00

View file

@ -118,14 +118,8 @@ public:
[[nodiscard]] size_t size() const { return m_impl->size(); }
[[nodiscard]] size_t capacity() const { return m_impl->capacity(); }
[[nodiscard]] void* end_pointer() { return data() + size(); }
[[nodiscard]] const void* end_pointer() const { return data() + size(); }
void set_size(size_t size) { m_impl->set_size(size); }
[[nodiscard]] KBufferImpl& impl() { return *m_impl; }
[[nodiscard]] const KBufferImpl& impl() const { return *m_impl; }
private:
explicit KBuffer(NonnullRefPtr<KBufferImpl> impl)
: m_impl(move(impl))