summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibTextCodec
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-20 12:41:32 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-20 15:31:46 +0200
commited7a2f21ff4ca7b453e0e93c4cde39aabd634ef1 (patch)
tree1c94e267544fea31ef5f18b4f17052e1e55570c0 /Userland/Libraries/LibTextCodec
parent13f4890c38c9f7f7d6e936d56de550a36916eec2 (diff)
downloadserenity-ed7a2f21ff4ca7b453e0e93c4cde39aabd634ef1.zip
LibTextCodec: Remove unused is_standardized_encoding()
Diffstat (limited to 'Userland/Libraries/LibTextCodec')
-rw-r--r--Userland/Libraries/LibTextCodec/Decoder.cpp6
-rw-r--r--Userland/Libraries/LibTextCodec/Decoder.h1
2 files changed, 0 insertions, 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<String> 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<String> get_standardized_encoding(const String& encoding);
-bool is_standardized_encoding(const String& encoding);
}