From 07c62f9f42f0591f6358f71b8e971550d1a183af Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sat, 29 May 2021 09:27:55 -0600 Subject: [PATCH] LibJS: Remove unused HeapBlock private member function FreelistEntries are constructed manually in deallocate() instead of using this helper. --- Userland/Libraries/LibJS/Heap/HeapBlock.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Userland/Libraries/LibJS/Heap/HeapBlock.h b/Userland/Libraries/LibJS/Heap/HeapBlock.h index 8916747347..85a6307ae3 100644 --- a/Userland/Libraries/LibJS/Heap/HeapBlock.h +++ b/Userland/Libraries/LibJS/Heap/HeapBlock.h @@ -96,11 +96,6 @@ private: return reinterpret_cast(&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 };