Skip to content

Commit

Permalink
Unreviewed, remove some dead code from the HTML fast parser
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=255032
rdar://107659867

* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:

Canonical link: https://commits.webkit.org/262621@main
  • Loading branch information
cdumez committed Apr 5, 2023
1 parent d5d5bd3 commit 284a4d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp
Expand Up @@ -190,8 +190,6 @@ template<typename CharacterType> static inline bool isCharAfterUnquotedAttribute
template<class Char>
class HTMLFastPathParser {
using CharSpan = Span<const Char>;
using LCharSpan = Span<const LChar>;
using UCharSpan = Span<const UChar>;
static_assert(std::is_same_v<Char, UChar> || std::is_same_v<Char, LChar>);

public:
Expand Down Expand Up @@ -468,8 +466,7 @@ class HTMLFastPathParser {
// We first try to scan text as an unmodified subsequence of the input.
// However, if there are escape sequences, we have to copy the text to a
// separate buffer and we might go outside of `Char` range if we are in an
// `LChar` parser. Therefore, this function returns either a `LCharSpan` or a
// `UCharSpan`.
// `LChar` parser.
String scanText()
{
auto* start = m_parsingBuffer.position();
Expand Down

0 comments on commit 284a4d7

Please sign in to comment.