Skip to content

Commit 21e63dd

Browse files
committed
remove definitions::def_index_to_node_id (unused)
1 parent 3ed7585 commit 21e63dd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/librustc/hir/map/definitions.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,6 @@ impl Definitions {
397397
self.node_to_hir_id[node_id]
398398
}
399399

400-
#[inline]
401-
pub fn def_index_to_node_id(&self, def_index: DefIndex) -> ast::NodeId {
402-
self.as_local_node_id(DefId::local(def_index)).unwrap()
403-
}
404-
405400
/// Retrieves the span of the given `DefId` if `DefId` is in the local crate, the span exists
406401
/// and it's not `DUMMY_SP`.
407402
#[inline]

0 commit comments

Comments
 (0)