Skip to content

Commit

Permalink
lexer: remove ishex()
Browse files Browse the repository at this point in the history
  • Loading branch information
v420v committed Jul 24, 2023
1 parent 0c37bfb commit a8c139e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lexer/lexer.v
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ fn (mut l Lexer) skip_comment() {
}
}

fn (mut l Lexer) is_hex() bool {
if l.text.len == l.idx+1 {
return false
} else {
return (l.c == `0`) && (l.text[l.idx+1] in [`x`, `X`])
}
}

fn (mut l Lexer) read_number() token.Token {
pos := l.current_pos()
start := l.idx
Expand Down

0 comments on commit a8c139e

Please sign in to comment.