diff --git a/Userland/Libraries/LibTextCodec/Decoder.cpp b/Userland/Libraries/LibTextCodec/Decoder.cpp index 4e83cc779a..cde353068a 100644 --- a/Userland/Libraries/LibTextCodec/Decoder.cpp +++ b/Userland/Libraries/LibTextCodec/Decoder.cpp @@ -192,12 +192,6 @@ Optional get_standardized_encoding(const String& encoding) return {}; } -bool is_standardized_encoding(const String& encoding) -{ - auto standardized_encoding = get_standardized_encoding(encoding); - return standardized_encoding.has_value() && encoding.equals_ignoring_case(standardized_encoding.value()); -} - String UTF8Decoder::to_utf8(const StringView& input) { return input; diff --git a/Userland/Libraries/LibTextCodec/Decoder.h b/Userland/Libraries/LibTextCodec/Decoder.h index 871ef35d9a..73ad85d4ea 100644 --- a/Userland/Libraries/LibTextCodec/Decoder.h +++ b/Userland/Libraries/LibTextCodec/Decoder.h @@ -60,6 +60,5 @@ public: Decoder* decoder_for(const String& encoding); Optional get_standardized_encoding(const String& encoding); -bool is_standardized_encoding(const String& encoding); }