Remove Cursor::index
.
It's unused.
This commit is contained in:
parent
ccd956aca6
commit
178b746d04
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user