Remove dead code for UTF-32
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Feb 2018 05:49:59 +0000 (05:49 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Feb 2018 05:49:59 +0000 (05:49 +0000)
commite2af13b80347a91e86e90a42093bfc23dad87040
tree8dfc59eeda40b779f15c4fe055c011ade1203cf2
parentf79ecfab08025d77f673fb74a282bb03babe980a
Remove dead code for UTF-32
https://bugs.webkit.org/show_bug.cgi?id=182900
<rdar://problem/37238717>

Patch by Daniel Bates <dabates@apple.com> on 2018-02-16
Reviewed by Alexey Proskuryakov.

LayoutTests/imported/w3c:

Update expected results now that all sub-tests pass.

* web-platform-tests/encoding/unsupported-encodings-expected.txt:
* web-platform-tests/encoding/utf-32-expected.txt:

Source/WebCore:

The UTF-32 encodings were removed from the text codec registry in r224747. So,
we no longer need code to encode or decode these variants.

* dom/TextDecoder.cpp:
(WebCore::codeUnitByteSize):
* loader/TextResourceDecoder.cpp:
(WebCore::TextResourceDecoder::checkForBOM):
(WebCore::TextResourceDecoder::checkForHeadCharset):
* platform/text/TextEncoding.cpp:
(WebCore::TextEncoding::isNonByteBasedEncoding const):
(WebCore::UTF32BigEndianEncoding): Deleted.
(WebCore::UTF32LittleEndianEncoding): Deleted.
* platform/text/TextEncoding.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/encoding/unsupported-encodings-expected.txt
LayoutTests/imported/w3c/web-platform-tests/encoding/utf-32-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/dom/TextDecoder.cpp
Source/WebCore/loader/TextResourceDecoder.cpp
Source/WebCore/platform/text/TextEncoding.cpp
Source/WebCore/platform/text/TextEncoding.h