summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2021-05-29 09:27:55 -0600
committerLinus Groh <mail@linusgroh.de>2021-05-29 17:47:29 +0100
commit07c62f9f42f0591f6358f71b8e971550d1a183af (patch)
tree728cd2cdd506b77d900a7849c4499d19c08985a2
parenteae14f4ba64889bc6bcee712e266045e9d351bb9 (diff)
downloadserenity-07c62f9f42f0591f6358f71b8e971550d1a183af.zip
LibJS: Remove unused HeapBlock private member function
FreelistEntries are constructed manually in deallocate() instead of using this helper.
-rw-r--r--Userland/Libraries/LibJS/Heap/HeapBlock.h5
1 files changed, 0 insertions, 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<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 };