From 21e63dddbeca3ab15cf365f9bd8dbb8a188c1d9b Mon Sep 17 00:00:00 2001 From: ljedrz Date: Thu, 20 Jun 2019 09:51:00 +0200 Subject: [PATCH] remove definitions::def_index_to_node_id (unused) --- src/librustc/hir/map/definitions.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/librustc/hir/map/definitions.rs b/src/librustc/hir/map/definitions.rs index 6a561f0c63a2a..b4bda36bc8a27 100644 --- a/src/librustc/hir/map/definitions.rs +++ b/src/librustc/hir/map/definitions.rs @@ -397,11 +397,6 @@ impl Definitions { self.node_to_hir_id[node_id] } - #[inline] - pub fn def_index_to_node_id(&self, def_index: DefIndex) -> ast::NodeId { - self.as_local_node_id(DefId::local(def_index)).unwrap() - } - /// Retrieves the span of the given `DefId` if `DefId` is in the local crate, the span exists /// and it's not `DUMMY_SP`. #[inline]