mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
AK: Use kfree_sized() in AK::StringImpl
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user