From d901a9989dcc07512d599271ced6868af1e960ac Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 19 Jan 2023 13:18:12 -0500 Subject: [PATCH] LibLocale: Remove now-unused [LanguageID,LocaleID]::to_deprecated_string --- Userland/Libraries/LibLocale/Locale.cpp | 10 ---------- Userland/Libraries/LibLocale/Locale.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/Userland/Libraries/LibLocale/Locale.cpp b/Userland/Libraries/LibLocale/Locale.cpp index 2315c7098e..7d6ad02962 100644 --- a/Userland/Libraries/LibLocale/Locale.cpp +++ b/Userland/Libraries/LibLocale/Locale.cpp @@ -948,11 +948,6 @@ ErrorOr LanguageID::to_string() const return builder.to_string(); } -DeprecatedString LanguageID::to_deprecated_string() const -{ - return MUST(to_string()).to_deprecated_string(); -} - ErrorOr LocaleID::to_string() const { StringBuilder builder; @@ -1006,9 +1001,4 @@ ErrorOr LocaleID::to_string() const return builder.to_string(); } -DeprecatedString LocaleID::to_deprecated_string() const -{ - return MUST(to_string()).to_deprecated_string(); -} - } diff --git a/Userland/Libraries/LibLocale/Locale.h b/Userland/Libraries/LibLocale/Locale.h index be09a66a61..e238f6b699 100644 --- a/Userland/Libraries/LibLocale/Locale.h +++ b/Userland/Libraries/LibLocale/Locale.h @@ -20,7 +20,6 @@ namespace Locale { struct LanguageID { ErrorOr 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 to_string() const; - DeprecatedString to_deprecated_string() const; template Vector remove_extension_type()