Skip to content

Commit

Permalink
refactor(parser): remove noop code (#2028)
Browse files Browse the repository at this point in the history
This PR removes some code from the lexer which doesn't do anything.
  • Loading branch information
overlookmotel authored Jan 14, 2024
1 parent 198f0e5 commit b4d76f0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/oxc_parser/src/lexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -1328,7 +1323,6 @@ const ERR: ByteHandler = |lexer| {

// <TAB> <VT> <FF>
const SPS: ByteHandler = |lexer| {
lexer.skip_irregular_whitespace();
lexer.consume_char();
Kind::WhiteSpace
};
Expand Down

0 comments on commit b4d76f0

Please sign in to comment.