diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-06 23:45:24 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-06 23:45:24 +0000 |
commit | 1f4437ff2b9a013dd586658e4e09fdbeb256d6e7 (patch) | |
tree | b08674a371c09dc68e4fedcd25e65961ee17644a /Userland/Libraries | |
parent | c756585deb57f05415f99f22fbe1d7de31bf5522 (diff) | |
download | serenity-1f4437ff2b9a013dd586658e4e09fdbeb256d6e7.zip |
LibJS: Remove unused VM::join_arguments() function
The last uses of this were removed in ff5e07d.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/VM.cpp | 11 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/VM.h | 2 |
2 files changed, 0 insertions, 13 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/VM.cpp b/Userland/Libraries/LibJS/Runtime/VM.cpp index b69d05469e..6113d93051 100644 --- a/Userland/Libraries/LibJS/Runtime/VM.cpp +++ b/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() { diff --git a/Userland/Libraries/LibJS/Runtime/VM.h b/Userland/Libraries/LibJS/Runtime/VM.h index e0c5200422..e666364ef3 100644 --- a/Userland/Libraries/LibJS/Runtime/VM.h +++ b/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(); |