mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibJS: Remove unused CodeGenerationError::to_deprecated_string
This commit is contained in:
parent
88814acbd3
commit
1400a85fae
Notes:
sideshowbarker
2024-07-17 03:45:48 +09:00
Author: https://github.com/trflynn89
Commit: 1400a85fae
Pull-request: https://github.com/SerenityOS/serenity/pull/17494
Reviewed-by: https://github.com/linusg ✅
2 changed files with 0 additions and 6 deletions
|
@ -18,7 +18,6 @@ struct CodeGenerationError {
|
||||||
StringView reason_literal;
|
StringView reason_literal;
|
||||||
|
|
||||||
ErrorOr<String> to_string() const;
|
ErrorOr<String> to_string() const;
|
||||||
DeprecatedString to_deprecated_string();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
|
@ -326,9 +326,4 @@ Label Generator::perform_needed_unwinds_for_labelled_continue_and_return_target_
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
DeprecatedString CodeGenerationError::to_deprecated_string()
|
|
||||||
{
|
|
||||||
return DeprecatedString::formatted("CodeGenerationError in {}: {}", failing_node ? failing_node->class_name() : "<unknown node>", reason_literal);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue