Rollup merge of #76050 - matklad:pos, r=petrochenkov
Remove unused function
This commit is contained in:
commit
7d2460e5c4
4 changed files with 140 additions and 281 deletions
|
@ -439,10 +439,6 @@ impl<'a> StringReader<'a> {
|
|||
(lit_kind, id)
|
||||
}
|
||||
|
||||
pub fn pos(&self) -> BytePos {
|
||||
self.pos
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn src_index(&self, pos: BytePos) -> usize {
|
||||
(pos - self.start_pos).to_usize()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue