Browse Source

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

Timothy Flynn 2 years ago
parent
commit
d901a9989d
2 changed files with 0 additions and 12 deletions
  1. 0 10
      Userland/Libraries/LibLocale/Locale.cpp
  2. 0 2
      Userland/Libraries/LibLocale/Locale.h

+ 0 - 10
Userland/Libraries/LibLocale/Locale.cpp

@@ -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();
-}
-
 }

+ 0 - 2
Userland/Libraries/LibLocale/Locale.h

@@ -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()