]> git.lizzy.rs Git - rust.git/commitdiff
remove definitions::def_index_to_node_id (unused)
authorljedrz <ljedrz@gmail.com>
Thu, 20 Jun 2019 07:51:00 +0000 (09:51 +0200)
committerljedrz <ljedrz@gmail.com>
Thu, 20 Jun 2019 10:47:26 +0000 (12:47 +0200)
src/librustc/hir/map/definitions.rs

index 6a561f0c63a2afa556eb4563bbd33f7c414e7a7c..b4bda36bc8a279036c60ddb10bdbf8c299695ad2 100644 (file)
@@ -397,11 +397,6 @@ pub fn def_index_to_hir_id(&self, def_index: DefIndex) -> hir::HirId {
         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]