From 284a4d7819bbda8e90bcbdbcf9d1e3c9f9202905 Mon Sep 17 00:00:00 2001 From: Chris Dumez Date: Wed, 5 Apr 2023 09:39:41 -0700 Subject: [PATCH] Unreviewed, remove some dead code from the HTML fast parser 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 --- Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp b/Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp index 1ceaaca28fe2..5c1cce7f4ebf 100644 --- a/Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp +++ b/Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp @@ -190,8 +190,6 @@ template static inline bool isCharAfterUnquotedAttribute template class HTMLFastPathParser { using CharSpan = Span; - using LCharSpan = Span; - using UCharSpan = Span; static_assert(std::is_same_v || std::is_same_v); public: @@ -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();