1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

LibLocale: Remove now-unused [LanguageID,LocaleID]::to_deprecated_string

This commit is contained in:
Timothy Flynn 2023-01-19 13:18:12 -05:00 committed by Linus Groh
parent bb4b6d8ce3
commit d901a9989d
2 changed files with 0 additions and 12 deletions

View file

@ -948,11 +948,6 @@ ErrorOr<String> LanguageID::to_string() const
return builder.to_string();
}
DeprecatedString LanguageID::to_deprecated_string() const
{
return MUST(to_string()).to_deprecated_string();
}
ErrorOr<String> LocaleID::to_string() const
{
StringBuilder builder;
@ -1006,9 +1001,4 @@ ErrorOr<String> LocaleID::to_string() const
return builder.to_string();
}
DeprecatedString LocaleID::to_deprecated_string() const
{
return MUST(to_string()).to_deprecated_string();
}
}

View file

@ -20,7 +20,6 @@ namespace Locale {
struct LanguageID {
ErrorOr<String> to_string() const;
DeprecatedString to_deprecated_string() const;
bool operator==(LanguageID const&) const = default;
bool is_root { false };
@ -59,7 +58,6 @@ using Extension = AK::Variant<LocaleExtension, TransformedExtension, OtherExtens
struct LocaleID {
ErrorOr<String> to_string() const;
DeprecatedString to_deprecated_string() const;
template<typename ExtensionType>
Vector<Extension> remove_extension_type()