Rollup merge of #76050 - matklad:pos, r=petrochenkov

Remove unused function
This commit is contained in:
Aleksey Kladov 2020-08-31 15:22:40 +02:00 committed by GitHub
commit 7d2460e5c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 140 additions and 281 deletions

View file

@ -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()