mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-08 16:07:43 +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
|
&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(
|
fn span_data_to_lines_and_cols(
|
||||||
&mut self,
|
&mut self,
|
||||||
span: &SpanData,
|
span: &SpanData,
|
||||||
|
@ -1362,12 +1362,6 @@ fn update_disambiguator(expn_id: ExpnId) {
|
|||||||
fn hash_spans(&self) -> bool {
|
fn hash_spans(&self) -> bool {
|
||||||
true
|
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(
|
fn span_data_to_lines_and_cols(
|
||||||
&mut self,
|
&mut self,
|
||||||
span: &crate::SpanData,
|
span: &crate::SpanData,
|
||||||
|
@ -1874,10 +1874,6 @@ pub trait HashStableContext {
|
|||||||
fn expn_id_cache() -> &'static LocalKey<ExpnIdCache>;
|
fn expn_id_cache() -> &'static LocalKey<ExpnIdCache>;
|
||||||
fn hash_crate_num(&mut self, _: CrateNum, hasher: &mut StableHasher);
|
fn hash_crate_num(&mut self, _: CrateNum, hasher: &mut StableHasher);
|
||||||
fn hash_spans(&self) -> bool;
|
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(
|
fn span_data_to_lines_and_cols(
|
||||||
&mut self,
|
&mut self,
|
||||||
span: &SpanData,
|
span: &SpanData,
|
||||||
|
Loading…
Reference in New Issue
Block a user