Remove Cursor::index.

It's unused.
This commit is contained in:
Nicholas Nethercote 2022-06-20 09:27:58 +10:00
parent ccd956aca6
commit 178b746d04

View file

@ -679,10 +679,6 @@ impl Cursor {
})
}
pub fn index(&self) -> usize {
self.index
}
pub fn look_ahead(&self, n: usize) -> Option<&TokenTree> {
self.stream.0[self.index..].get(n).map(|(tree, _)| tree)
}