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:
parent
3aabace9f5
commit
c68c3fa69c
2 changed files with 8 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue