mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 04:50:29 +00:00
AK: Remove debug spam in SharedBuffer::create_from_shbuf_id()
This commit is contained in:
parent
554b58d85f
commit
2c4a168404
Notes:
sideshowbarker
2024-07-19 05:08:06 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2c4a1684048
1 changed files with 1 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue