From ed7a2f21ff4ca7b453e0e93c4cde39aabd634ef1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 20 Aug 2021 12:41:32 +0200 Subject: [PATCH] LibTextCodec: Remove unused is_standardized_encoding() --- Userland/Libraries/LibTextCodec/Decoder.cpp | 6 ------ Userland/Libraries/LibTextCodec/Decoder.h | 1 - 2 files changed, 7 deletions(-) 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); }