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();