mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Remove useless method.
This commit is contained in:
parent
84bf599bac
commit
fe2d728e62
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user