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 @@ pub fn next_with_spacing_ref(&mut self) -> Option<&TreeAndSpacing> {
})
}
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)
}