summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-12-29 00:07:52 +0100
committerLinus Groh <mail@linusgroh.de>2021-12-29 00:16:51 +0100
commit3626a7fd6d2c4792c24144e958fffc38987e0c1b (patch)
treef75a1ad2d57a9ad9e2320a36f623ec6240c75873 /Userland/Libraries
parent451149df0b6ea94ea3aa0c1d630334c998ebc9d0 (diff)
downloadserenity-3626a7fd6d2c4792c24144e958fffc38987e0c1b.zip
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.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibJS/Runtime/FunctionEnvironment.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/FunctionEnvironment.h b/Userland/Libraries/LibJS/Runtime/FunctionEnvironment.h
index b2574e324d..7487ed689c 100644
--- a/Userland/Libraries/LibJS/Runtime/FunctionEnvironment.h
+++ b/Userland/Libraries/LibJS/Runtime/FunctionEnvironment.h
@@ -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; }