From 4237089a21a86a2610929a68dafa72c0f4e20ff9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 4 Oct 2020 16:27:46 +0200 Subject: [PATCH] LibJS: Remove unused Heap::interpreter() --- Libraries/LibJS/Heap/Heap.cpp | 5 ----- Libraries/LibJS/Heap/Heap.h | 1 - 2 files changed, 6 deletions(-) diff --git a/Libraries/LibJS/Heap/Heap.cpp b/Libraries/LibJS/Heap/Heap.cpp index 1bfa91e54e..cbb012763c 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 0d727210a4..9f2697a0f2 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; }