Remove Cursor::index
.
It's unused.
This commit is contained in:
parent
ccd956aca6
commit
178b746d04
1 changed files with 0 additions and 4 deletions
|
@ -679,10 +679,6 @@ impl Cursor {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn index(&self) -> usize {
|
|
||||||
self.index
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn look_ahead(&self, n: usize) -> Option<&TokenTree> {
|
pub fn look_ahead(&self, n: usize) -> Option<&TokenTree> {
|
||||||
self.stream.0[self.index..].get(n).map(|(tree, _)| tree)
|
self.stream.0[self.index..].get(n).map(|(tree, _)| tree)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue