Skip to content

Commit 178b746

Browse files
committed
Remove Cursor::index.
It's unused.
1 parent ccd956a commit 178b746

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

compiler/rustc_ast/src/tokenstream.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,6 @@ impl Cursor {
679679
})
680680
}
681681

682-
pub fn index(&self) -> usize {
683-
self.index
684-
}
685-
686682
pub fn look_ahead(&self, n: usize) -> Option<&TokenTree> {
687683
self.stream.0[self.index..].get(n).map(|(tree, _)| tree)
688684
}

0 commit comments

Comments
 (0)