1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

LibJS: Remove unused HeapBlock private member function

FreelistEntries are constructed manually in deallocate() instead of
using this helper.
This commit is contained in:
Andrew Kaster 2021-05-29 09:27:55 -06:00 committed by Linus Groh
parent eae14f4ba6
commit 07c62f9f42

View file

@ -96,11 +96,6 @@ private:
return reinterpret_cast<Cell*>(&m_storage[index * cell_size()]);
}
FreelistEntry* init_freelist_entry(size_t index)
{
return new (&m_storage[index * cell_size()]) FreelistEntry();
}
Heap& m_heap;
size_t m_cell_size { 0 };
size_t m_next_lazy_freelist_index { 0 };