From b4d76f0b0d22e7bb1e454bb3f45d2fd9aa033b36 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Sun, 14 Jan 2024 15:48:35 +0000 Subject: [PATCH] refactor(parser): remove noop code (#2028) This PR removes some code from the lexer which doesn't do anything. --- crates/oxc_parser/src/lexer/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/oxc_parser/src/lexer/mod.rs b/crates/oxc_parser/src/lexer/mod.rs index f066ff82e..fe56d53be 100644 --- a/crates/oxc_parser/src/lexer/mod.rs +++ b/crates/oxc_parser/src/lexer/mod.rs @@ -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| { // const SPS: ByteHandler = |lexer| { - lexer.skip_irregular_whitespace(); lexer.consume_char(); Kind::WhiteSpace };