Преглед изворни кода

LibJS: Remove unused HeapBlock private member function

FreelistEntries are constructed manually in deallocate() instead of
using this helper.
Andrew Kaster пре 4 година
родитељ
комит
07c62f9f42
1 измењених фајлова са 0 додато и 5 уклоњено
  1. 0 5
      Userland/Libraries/LibJS/Heap/HeapBlock.h

+ 0 - 5
Userland/Libraries/LibJS/Heap/HeapBlock.h

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