summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Bytecode
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-02-16 14:14:22 -0500
committerTim Flynn <trflynn89@pm.me>2023-02-17 09:14:23 -0500
commit1400a85faef0087069cee71755d6f682121b4524 (patch)
tree6dbd0ad0f0396fb86685e95797e11cc9f5407256 /Userland/Libraries/LibJS/Bytecode
parent88814acbd39ba252167e48f48f5b938df142065b (diff)
downloadserenity-1400a85faef0087069cee71755d6f682121b4524.zip
LibJS: Remove unused CodeGenerationError::to_deprecated_string
Diffstat (limited to 'Userland/Libraries/LibJS/Bytecode')
-rw-r--r--Userland/Libraries/LibJS/Bytecode/CodeGenerationError.h1
-rw-r--r--Userland/Libraries/LibJS/Bytecode/Generator.cpp5
2 files changed, 0 insertions, 6 deletions
diff --git a/Userland/Libraries/LibJS/Bytecode/CodeGenerationError.h b/Userland/Libraries/LibJS/Bytecode/CodeGenerationError.h
index 036f08d61d..5e23d71e09 100644
--- a/Userland/Libraries/LibJS/Bytecode/CodeGenerationError.h
+++ b/Userland/Libraries/LibJS/Bytecode/CodeGenerationError.h
@@ -18,7 +18,6 @@ struct CodeGenerationError {
StringView reason_literal;
ErrorOr<String> to_string() const;
- DeprecatedString to_deprecated_string();
};
template<typename T>
diff --git a/Userland/Libraries/LibJS/Bytecode/Generator.cpp b/Userland/Libraries/LibJS/Bytecode/Generator.cpp
index 8205f1e895..8df4ff676c 100644
--- a/Userland/Libraries/LibJS/Bytecode/Generator.cpp
+++ b/Userland/Libraries/LibJS/Bytecode/Generator.cpp
@@ -326,9 +326,4 @@ Label Generator::perform_needed_unwinds_for_labelled_continue_and_return_target_
VERIFY_NOT_REACHED();
}
-DeprecatedString CodeGenerationError::to_deprecated_string()
-{
- return DeprecatedString::formatted("CodeGenerationError in {}: {}", failing_node ? failing_node->class_name() : "<unknown node>", reason_literal);
-}
-
}