mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 05:08:45 +00:00
refactor(parser): remove noop code (#2028)
This PR removes some code from the lexer which doesn't do anything.
This commit is contained in:
parent
198f0e5d73
commit
b4d76f0b0d
1 changed files with 0 additions and 6 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue