LibJS: Remove unused HashTable in function_declaration_instantiation()

This commit is contained in:
Andreas Kling 2023-09-19 07:06:50 +02:00
parent edd2f8b37f
commit e03f43e1b5

View file

@ -659,10 +659,6 @@ ThrowCompletionOr<void> ECMAScriptFunctionObject::function_declaration_instantia
GCPtr<Environment> var_environment;
HashTable<DeprecatedFlyString> instantiated_var_names;
if (scope_body)
instantiated_var_names.ensure_capacity(scope_body->var_declaration_count());
// 27. If hasParameterExpressions is false, then
if (!m_has_parameter_expressions) {
// a. NOTE: Only a single Environment Record is needed for the parameters and top-level vars.