diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-11 12:24:56 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-11 12:24:58 +0100 |
| commit | fe2d728e62d01cdf80d92f5f4d6ff5eb6ac6d10f (patch) | |
| tree | fb61e3f83b2f2973d200f094de1dc2c3cfd354f2 /compiler | |
| parent | 84bf599bace38787f2237d2aadc5adf55fe662db (diff) | |
| download | rust-fe2d728e62d01cdf80d92f5f4d6ff5eb6ac6d10f.tar.gz rust-fe2d728e62d01cdf80d92f5f4d6ff5eb6ac6d10f.zip | |
Remove useless method.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_middle/src/ich/hcx.rs | 7 | ||||
| -rw-r--r-- | compiler/rustc_span/src/hygiene.rs | 6 | ||||
| -rw-r--r-- | compiler/rustc_span/src/lib.rs | 4 |
3 files changed, 0 insertions, 17 deletions
diff --git a/compiler/rustc_middle/src/ich/hcx.rs b/compiler/rustc_middle/src/ich/hcx.rs index 51b650e5ade..cf29d21927c 100644 --- a/compiler/rustc_middle/src/ich/hcx.rs +++ b/compiler/rustc_middle/src/ich/hcx.rs @@ -250,13 +250,6 @@ impl<'a> rustc_span::HashStableContext for StableHashingContext<'a> { &CACHE } - fn byte_pos_to_line_and_col( - &mut self, - byte: BytePos, - ) -> Option<(Lrc<SourceFile>, usize, BytePos)> { - self.source_map().byte_pos_to_line_and_col(byte) - } - fn span_data_to_lines_and_cols( &mut self, span: &SpanData, diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs index 4ccf657335f..e67a4ca8fb2 100644 --- a/compiler/rustc_span/src/hygiene.rs +++ b/compiler/rustc_span/src/hygiene.rs @@ -1362,12 +1362,6 @@ fn update_disambiguator(expn_id: ExpnId) { fn hash_spans(&self) -> bool { true } - fn byte_pos_to_line_and_col( - &mut self, - byte: BytePos, - ) -> Option<(Lrc<SourceFile>, usize, BytePos)> { - self.caching_source_map.byte_pos_to_line_and_col(byte) - } fn span_data_to_lines_and_cols( &mut self, span: &crate::SpanData, diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs index fb6c0873d77..1a2e87d28ac 100644 --- a/compiler/rustc_span/src/lib.rs +++ b/compiler/rustc_span/src/lib.rs @@ -1874,10 +1874,6 @@ pub trait HashStableContext { fn expn_id_cache() -> &'static LocalKey<ExpnIdCache>; fn hash_crate_num(&mut self, _: CrateNum, hasher: &mut StableHasher); fn hash_spans(&self) -> bool; - fn byte_pos_to_line_and_col( - &mut self, - byte: BytePos, - ) -> Option<(Lrc<SourceFile>, usize, BytePos)>; fn span_data_to_lines_and_cols( &mut self, span: &SpanData, |
