diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-08-01 05:13:40 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-03 18:54:23 +0200 |
commit | 2caafacd9ba9c67bb80f968d94f6a51e04f2b040 (patch) | |
tree | c6c0fa44c5100f5efab97c44d3cfb17154f9153d /Kernel | |
parent | 720a686a761b476ff0a793b243f6cc2848fffd04 (diff) | |
download | serenity-2caafacd9ba9c67bb80f968d94f6a51e04f2b040.zip |
Kernel: Remove OOM unsafe API KBuffer::create_with_size
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/KBuffer.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Kernel/KBuffer.h b/Kernel/KBuffer.h index ccedfa2f17..4730faf4bc 100644 --- a/Kernel/KBuffer.h +++ b/Kernel/KBuffer.h @@ -120,11 +120,6 @@ public: return adopt_own_if_nonnull(new (nothrow) KBuffer(impl.release_nonnull())); } - [[nodiscard]] static KBuffer create_with_size(size_t size, Region::Access access = Region::Access::Read | Region::Access::Write, StringView name = "KBuffer", AllocationStrategy strategy = AllocationStrategy::Reserve) - { - return KBuffer(KBufferImpl::create_with_size(size, access, name, strategy)); - } - [[nodiscard]] static KBuffer copy(const void* data, size_t size, Region::Access access = Region::Access::Read | Region::Access::Write, StringView name = "KBuffer") { return KBuffer(KBufferImpl::copy(data, size, access, name)); |