Skip to content

Commit f2900fa

Browse files
committed
Remove unused 'prev' in Lexer
This was something I thought I was going to use to implement doc comments, but didn't end up doing it that way.
1 parent 632e4f6 commit f2900fa

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

poniescript-core/src/lexer.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ pub struct Lexer {
154154
at_eof: bool,
155155

156156
pub had_error: bool,
157-
158-
// The previously stored token, if any.
159-
prev: Option<Token>,
160157
}
161158

162159
fn is_whitespace(c: char) -> bool {
@@ -192,7 +189,6 @@ impl Lexer {
192189
at_eof: false,
193190

194191
had_error: false,
195-
prev: None,
196192
}
197193
}
198194

0 commit comments

Comments
 (0)