diff --git a/Libraries/LibJS/Heap/Heap.cpp b/Libraries/LibJS/Heap/Heap.cpp index 1bfa91e54e5271209116025fe0a061072364189c..cbb012763cde8eccf0e228c7ee2565bb5708d806 100644 --- a/Libraries/LibJS/Heap/Heap.cpp +++ b/Libraries/LibJS/Heap/Heap.cpp @@ -57,11 +57,6 @@ Heap::~Heap() collect_garbage(CollectionType::CollectEverything); } -Interpreter& Heap::interpreter() -{ - return vm().interpreter(); -} - Cell* Heap::allocate_cell(size_t size) { if (should_collect_on_every_allocation()) { diff --git a/Libraries/LibJS/Heap/Heap.h b/Libraries/LibJS/Heap/Heap.h index 0d727210a445df49e0a5fa41a128b6358592d1c5..9f2697a0f29a5e4b629ad741913ca7c36de4b250 100644 --- a/Libraries/LibJS/Heap/Heap.h +++ b/Libraries/LibJS/Heap/Heap.h @@ -71,7 +71,6 @@ public: void collect_garbage(CollectionType = CollectionType::CollectGarbage, bool print_report = false); - Interpreter& interpreter(); VM& vm() { return m_vm; } bool should_collect_on_every_allocation() const { return m_should_collect_on_every_allocation; }