Skip to content

Commit

Permalink
remove definitions::def_index_to_node_id (unused)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljedrz committed Jun 20, 2019
1 parent 3ed7585 commit 21e63dd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/librustc/hir/map/definitions.rs
Expand Up @@ -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]
Expand Down

0 comments on commit 21e63dd

Please sign in to comment.