Skip to content

Commit fe2d728

Browse files
committed
Remove useless method.
1 parent 84bf599 commit fe2d728

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

compiler/rustc_middle/src/ich/hcx.rs

-7
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,6 @@ impl<'a> rustc_span::HashStableContext for StableHashingContext<'a> {
250250
&CACHE
251251
}
252252

253-
fn byte_pos_to_line_and_col(
254-
&mut self,
255-
byte: BytePos,
256-
) -> Option<(Lrc<SourceFile>, usize, BytePos)> {
257-
self.source_map().byte_pos_to_line_and_col(byte)
258-
}
259-
260253
fn span_data_to_lines_and_cols(
261254
&mut self,
262255
span: &SpanData,

compiler/rustc_span/src/hygiene.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1362,12 +1362,6 @@ fn update_disambiguator(expn_id: ExpnId) {
13621362
fn hash_spans(&self) -> bool {
13631363
true
13641364
}
1365-
fn byte_pos_to_line_and_col(
1366-
&mut self,
1367-
byte: BytePos,
1368-
) -> Option<(Lrc<SourceFile>, usize, BytePos)> {
1369-
self.caching_source_map.byte_pos_to_line_and_col(byte)
1370-
}
13711365
fn span_data_to_lines_and_cols(
13721366
&mut self,
13731367
span: &crate::SpanData,

compiler/rustc_span/src/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1874,10 +1874,6 @@ pub trait HashStableContext {
18741874
fn expn_id_cache() -> &'static LocalKey<ExpnIdCache>;
18751875
fn hash_crate_num(&mut self, _: CrateNum, hasher: &mut StableHasher);
18761876
fn hash_spans(&self) -> bool;
1877-
fn byte_pos_to_line_and_col(
1878-
&mut self,
1879-
byte: BytePos,
1880-
) -> Option<(Lrc<SourceFile>, usize, BytePos)>;
18811877
fn span_data_to_lines_and_cols(
18821878
&mut self,
18831879
span: &SpanData,

0 commit comments

Comments
 (0)