1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:27:34 +00:00

Kernel: Remove KBuffer::is_null() and bogus call sites :^)

This commit is contained in:
Andreas Kling 2021-09-07 16:00:39 +02:00
parent 1a04dc9cba
commit 881923dd47
2 changed files with 3 additions and 7 deletions

View file

@ -113,8 +113,6 @@ public:
return adopt_nonnull_own_or_enomem(new (nothrow) KBuffer(impl.release_nonnull()));
}
[[nodiscard]] bool is_null() const { return false; }
[[nodiscard]] u8* data() { return m_impl->data(); }
[[nodiscard]] const u8* data() const { return m_impl->data(); }
[[nodiscard]] size_t size() const { return m_impl->size(); }