Forráskód Böngészése

LibJS: Remove unused HeapBlock private member function

FreelistEntries are constructed manually in deallocate() instead of
using this helper.
Andrew Kaster 4 éve
szülő
commit
07c62f9f42
1 módosított fájl, 0 hozzáadás és 5 törlés
  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()]);
     }
 
-    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 };