Skip to content

Commit 1733e8d

Browse files
committed
Remove unused PrinterSupport::hir_map method.
1 parent 4425f22 commit 1733e8d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

compiler/rustc_driver_impl/src/pretty.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ trait HirPrinterSupport<'hir>: pprust_hir::PpAnn {
9494
/// `Session` from a value that now owns it.
9595
fn sess(&self) -> &Session;
9696

97-
/// Provides a uniform interface for re-extracting a reference to an
98-
/// `hir_map::Map` from a value that now owns it.
99-
fn hir_map(&self) -> Option<hir_map::Map<'hir>>;
100-
10197
/// Produces the pretty-print annotation object.
10298
///
10399
/// (Rust does not yet support upcasting from a trait object to
@@ -125,10 +121,6 @@ impl<'hir> HirPrinterSupport<'hir> for NoAnn<'hir> {
125121
self.sess
126122
}
127123

128-
fn hir_map(&self) -> Option<hir_map::Map<'hir>> {
129-
self.tcx.map(|tcx| tcx.hir())
130-
}
131-
132124
fn pp_ann(&self) -> &dyn pprust_hir::PpAnn {
133125
self
134126
}
@@ -200,10 +192,6 @@ impl<'hir> HirPrinterSupport<'hir> for IdentifiedAnnotation<'hir> {
200192
self.sess
201193
}
202194

203-
fn hir_map(&self) -> Option<hir_map::Map<'hir>> {
204-
self.tcx.map(|tcx| tcx.hir())
205-
}
206-
207195
fn pp_ann(&self) -> &dyn pprust_hir::PpAnn {
208196
self
209197
}
@@ -298,10 +286,6 @@ impl<'tcx> HirPrinterSupport<'tcx> for TypedAnnotation<'tcx> {
298286
self.tcx.sess
299287
}
300288

301-
fn hir_map(&self) -> Option<hir_map::Map<'tcx>> {
302-
Some(self.tcx.hir())
303-
}
304-
305289
fn pp_ann(&self) -> &dyn pprust_hir::PpAnn {
306290
self
307291
}

0 commit comments

Comments
 (0)