AK: Remove debug spam in SharedBuffer::create_from_shbuf_id()

This commit is contained in:
Andreas Kling 2020-07-05 16:36:28 +02:00
parent 554b58d85f
commit 2c4a168404
Notes: sideshowbarker 2024-07-19 05:08:06 +09:00

View file

@ -69,10 +69,8 @@ RefPtr<SharedBuffer> SharedBuffer::create_from_shbuf_id(int shbuf_id)
{
size_t size = 0;
void* data = shbuf_get(shbuf_id, &size);
if (data == (void*)-1) {
perror("shbuf_get");
if (data == (void*)-1)
return nullptr;
}
return adopt(*new SharedBuffer(shbuf_id, size, data));
}