Skip to content

Commit

Permalink
LibTextCodec: Remove unused is_standardized_encoding()
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Aug 20, 2021
1 parent 13f4890 commit ed7a2f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions Userland/Libraries/LibTextCodec/Decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion Userland/Libraries/LibTextCodec/Decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,5 @@ class TurkishDecoder final : public Decoder {

Decoder* decoder_for(const String& encoding);
Optional<String> get_standardized_encoding(const String& encoding);
bool is_standardized_encoding(const String& encoding);

}

0 comments on commit ed7a2f2

Please sign in to comment.