refactor(parser): remove noop code (#2028)

This PR removes some code from the lexer which doesn't do anything.
This commit is contained in:
overlookmotel 2024-01-14 15:48:35 +00:00 committed by GitHub
parent 198f0e5d73
commit b4d76f0b0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -443,11 +443,6 @@ impl<'a> Lexer<'a> {
Kind::Comment
}
/// Section 12.1 Irregular White Space
fn skip_irregular_whitespace(&mut self) -> Kind {
Kind::WhiteSpace
}
/// Section 12.4 Multi Line Comment
fn skip_multi_line_comment(&mut self) -> Kind {
while let Some(c) = self.current.chars.next() {
@ -1328,7 +1323,6 @@ const ERR: ByteHandler = |lexer| {
// <TAB> <VT> <FF>
const SPS: ByteHandler = |lexer| {
lexer.skip_irregular_whitespace();
lexer.consume_char();
Kind::WhiteSpace
};