Browse Source

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 years ago
parent
commit
bfa97b9357
2 changed files with 0 additions and 12 deletions
  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();
     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)
 const LogStream& operator<<(const LogStream& stream, const Cell* cell)
 {
 {
     if (!cell)
     if (!cell)

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

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