mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
AK: Remove the public ByteBuffer::trim method
This removes the public trim() method because it is no longer necessary. Callers can instead use resize().
This commit is contained in:
parent
5f18cf75c5
commit
d8b5fa9dfe
3 changed files with 8 additions and 13 deletions
|
@ -72,7 +72,7 @@ ByteBuffer UDPServer::receive(size_t size, sockaddr_in& in)
|
|||
return {};
|
||||
}
|
||||
|
||||
buf.trim(rlen);
|
||||
buf.resize(rlen);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue