Pārlūkot izejas kodu

LibJS: Remove unused Accessor::call_{getter,setter}()

If only we had such "a way to communicate to our caller if an exception
happened" - too bad it's dead code :^)
Linus Groh 3 gadi atpakaļ
vecāks
revīzija
b4208c8ea1
1 mainītis faili ar 0 papildinājumiem un 15 dzēšanām
  1. 0 15
      Userland/Libraries/LibJS/Runtime/Accessor.h

+ 0 - 15
Userland/Libraries/LibJS/Runtime/Accessor.h

@@ -31,21 +31,6 @@ public:
     FunctionObject* setter() const { return m_setter; }
     void set_setter(FunctionObject* setter) { m_setter = setter; }
 
-    Value call_getter(Value this_value)
-    {
-        if (!m_getter)
-            return js_undefined();
-        return TRY_OR_DISCARD(vm().call(*m_getter, this_value));
-    }
-
-    void call_setter(Value this_value, Value setter_value)
-    {
-        if (!m_setter)
-            return;
-        // FIXME: It might be nice if we had a way to communicate to our caller if an exception happened after this.
-        [[maybe_unused]] auto rc = vm().call(*m_setter, this_value, setter_value);
-    }
-
     void visit_edges(Cell::Visitor& visitor) override
     {
         visitor.visit(m_getter);