LibJS: Remove unused FunctionEnvironment this value getter/setter

The this value is only supposed to be set via the BindThisValue and
accessed via the GetThisBinding AOs, so exposing a direct getter/setter
would only lead to potentially non-spec-compliant behavior down the
line.
This commit is contained in:
Linus Groh 2021-12-29 00:07:52 +01:00
parent 451149df0b
commit 3626a7fd6d

View file

@ -25,9 +25,6 @@ public:
explicit FunctionEnvironment(Environment* parent_scope);
virtual ~FunctionEnvironment() override;
Value this_value() const { return m_this_value; }
void set_this_value(Value value) { m_this_value = value; }
ThisBindingStatus this_binding_status() const { return m_this_binding_status; }
void set_this_binding_status(ThisBindingStatus status) { m_this_binding_status = status; }