浏览代码

LibJS: Remove Cell::interpreter()

It's never necessary to find the current Interpreter for a given Cell
anymore. Get rid of this accessor.
Andreas Kling 4 年之前
父节点
当前提交
bfa97b9357
共有 2 个文件被更改,包括 0 次插入12 次删除
  1. 0 10
      Libraries/LibJS/Runtime/Cell.cpp
  2. 0 2
      Libraries/LibJS/Runtime/Cell.h

+ 0 - 10
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)

+ 0 - 2
Libraries/LibJS/Runtime/Cell.h

@@ -61,8 +61,6 @@ public:
 
     Heap& heap() const;
     VM& vm() const;
-    Interpreter& interpreter();
-    Interpreter& interpreter() const;
 
 protected:
     Cell() { }