diff --git a/Libraries/LibJS/Heap/Heap.cpp b/Libraries/LibJS/Heap/Heap.cpp index 1bfa91e54e5..cbb012763cd 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 0d727210a44..9f2697a0f29 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; }