소스 검색

LibJS: Remove unused VM::join_arguments() function

The last uses of this were removed in ff5e07d.
Linus Groh 2 년 전
부모
커밋
1f4437ff2b
2개의 변경된 파일0개의 추가작업 그리고 13개의 파일을 삭제
  1. 0 11
      Userland/Libraries/LibJS/Runtime/VM.cpp
  2. 0 2
      Userland/Libraries/LibJS/Runtime/VM.h

+ 0 - 11
Userland/Libraries/LibJS/Runtime/VM.cpp

@@ -631,17 +631,6 @@ ThrowCompletionOr<Value> VM::resolve_this_binding()
     return TRY(environment.get_this_binding(vm));
 }
 
-DeprecatedString VM::join_arguments(size_t start_index) const
-{
-    StringBuilder joined_arguments;
-    for (size_t i = start_index; i < argument_count(); ++i) {
-        joined_arguments.append(argument(i).to_string_without_side_effects().view());
-        if (i != argument_count() - 1)
-            joined_arguments.append(' ');
-    }
-    return joined_arguments.build();
-}
-
 // 9.4.5 GetNewTarget ( ), https://tc39.es/ecma262/#sec-getnewtarget
 Value VM::get_new_target()
 {

+ 0 - 2
Userland/Libraries/LibJS/Runtime/VM.h

@@ -184,8 +184,6 @@ public:
 
     Value construct(FunctionObject&, FunctionObject& new_target, Optional<MarkedVector<Value>> arguments);
 
-    DeprecatedString join_arguments(size_t start_index = 0) const;
-
     Value get_new_target();
 
     Object& get_global_object();