From bfa97b93576e6d13dd29a3feb5a05ae4848ff38a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 4 Oct 2020 13:56:47 +0200 Subject: [PATCH] LibJS: Remove Cell::interpreter() It's never necessary to find the current Interpreter for a given Cell anymore. Get rid of this accessor. --- Libraries/LibJS/Runtime/Cell.cpp | 10 ---------- Libraries/LibJS/Runtime/Cell.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/Libraries/LibJS/Runtime/Cell.cpp b/Libraries/LibJS/Runtime/Cell.cpp index 3b4f652d4a..342085264f 100644 --- a/Libraries/LibJS/Runtime/Cell.cpp +++ b/Libraries/LibJS/Runtime/Cell.cpp @@ -56,16 +56,6 @@ VM& Cell::vm() const return heap().vm(); } -Interpreter& Cell::interpreter() -{ - return heap().interpreter(); -} - -Interpreter& Cell::interpreter() const -{ - return heap().interpreter(); -} - const LogStream& operator<<(const LogStream& stream, const Cell* cell) { if (!cell) diff --git a/Libraries/LibJS/Runtime/Cell.h b/Libraries/LibJS/Runtime/Cell.h index 0c1388924c..a8587c3b69 100644 --- a/Libraries/LibJS/Runtime/Cell.h +++ b/Libraries/LibJS/Runtime/Cell.h @@ -61,8 +61,6 @@ public: Heap& heap() const; VM& vm() const; - Interpreter& interpreter(); - Interpreter& interpreter() const; protected: Cell() { }