mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
LibJS: Remove Value::to_deprecated_string_without_side_effects
This commit is contained in:
parent
a2f1b80c36
commit
ba40ef1f3a
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/trflynn89
Commit: ba40ef1f3a
Pull-request: https://github.com/SerenityOS/serenity/pull/17461
Reviewed-by: https://github.com/linusg
2 changed files with 0 additions and 6 deletions
|
@ -395,11 +395,6 @@ ErrorOr<String> Value::to_string_without_side_effects() const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DeprecatedString Value::to_deprecated_string_without_side_effects() const
|
|
||||||
{
|
|
||||||
return MUST(to_string_without_side_effects()).to_deprecated_string();
|
|
||||||
}
|
|
||||||
|
|
||||||
ThrowCompletionOr<PrimitiveString*> Value::to_primitive_string(VM& vm)
|
ThrowCompletionOr<PrimitiveString*> Value::to_primitive_string(VM& vm)
|
||||||
{
|
{
|
||||||
if (is_string())
|
if (is_string())
|
||||||
|
|
|
@ -395,7 +395,6 @@ public:
|
||||||
ThrowCompletionOr<FunctionObject*> get_method(VM&, PropertyKey const&) const;
|
ThrowCompletionOr<FunctionObject*> get_method(VM&, PropertyKey const&) const;
|
||||||
|
|
||||||
ErrorOr<String> to_string_without_side_effects() const;
|
ErrorOr<String> to_string_without_side_effects() const;
|
||||||
DeprecatedString to_deprecated_string_without_side_effects() const;
|
|
||||||
|
|
||||||
Value value_or(Value fallback) const
|
Value value_or(Value fallback) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue