Skip to content

Commit d4d74da

Browse files
committed
remove unused is_fn
1 parent 6c2f64b commit d4d74da

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/librustc/hir/map/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -572,18 +572,6 @@ impl<'hir> Map<'hir> {
572572
}
573573
}
574574

575-
/// Check if the node is a non-closure function item
576-
pub fn is_fn(&self, id: NodeId) -> bool {
577-
let entry = if let Some(id) = self.find_entry(id) { id } else { return false };
578-
579-
match entry {
580-
EntryItem(_, &Item { node: ItemFn(..), .. }) |
581-
EntryTraitItem(_, &TraitItem { node: TraitItemKind::Method(..), .. }) |
582-
EntryImplItem(_, &ImplItem { node: ImplItemKind::Method(..), .. }) => true,
583-
_ => false,
584-
}
585-
}
586-
587575
/// If there is some error when walking the parents (e.g., a node does not
588576
/// have a parent in the map or a node can't be found), then we return the
589577
/// last good node id we found. Note that reaching the crate root (id == 0),

0 commit comments

Comments
 (0)