1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 07:54:58 +00:00

AK: Use kfree_sized() in AK::StringImpl

This commit is contained in:
Andreas Kling 2021-07-11 13:23:13 +02:00
parent 3aabace9f5
commit c68c3fa69c
2 changed files with 8 additions and 6 deletions

View file

@ -37,11 +37,6 @@ StringImpl::~StringImpl()
FlyString::did_destroy_impl({}, *this);
}
static inline size_t allocation_size_for_stringimpl(size_t length)
{
return sizeof(StringImpl) + (sizeof(char) * length) + sizeof(char);
}
NonnullRefPtr<StringImpl> StringImpl::create_uninitialized(size_t length, char*& buffer)
{
VERIFY(length);