From 60d1ef6af492530d581d1c532e2c1e1f3868d220 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 16 Apr 2020 16:58:44 +0200 Subject: LibJS: Remove no-op code in ScriptFunction constructor --- Libraries/LibJS/Runtime/ScriptFunction.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Libraries') diff --git a/Libraries/LibJS/Runtime/ScriptFunction.cpp b/Libraries/LibJS/Runtime/ScriptFunction.cpp index ec1b6188da..67801181f6 100644 --- a/Libraries/LibJS/Runtime/ScriptFunction.cpp +++ b/Libraries/LibJS/Runtime/ScriptFunction.cpp @@ -39,11 +39,6 @@ ScriptFunction::ScriptFunction(const FlyString& name, const Statement& body, Vec , m_parameters(move(parameters)) , m_parent_environment(parent_environment) { - HashMap variables; - for (auto& parameter : parameters) { - variables.set(parameter, {}); - } - put("prototype", heap().allocate()); put_native_property("length", length_getter, length_setter); } -- cgit v1.2.3