Browse Source

LibJS: Remove unused HashTable in function_declaration_instantiation()

Andreas Kling 1 year ago
parent
commit
e03f43e1b5
1 changed files with 0 additions and 4 deletions
  1. 0 4
      Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp

+ 0 - 4
Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp

@@ -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.