Kernel: Remove OOM unsafe API KBuffer::create_with_size

This commit is contained in:
Brian Gianforcaro 2021-08-01 05:13:40 -07:00 committed by Andreas Kling
parent 720a686a76
commit 2caafacd9b
Notes: sideshowbarker 2024-07-18 07:31:25 +09:00

View file

@ -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));