File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -572,18 +572,6 @@ impl<'hir> Map<'hir> {
572
572
}
573
573
}
574
574
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
-
587
575
/// If there is some error when walking the parents (e.g., a node does not
588
576
/// have a parent in the map or a node can't be found), then we return the
589
577
/// last good node id we found. Note that reaching the crate root (id == 0),
You can’t perform that action at this time.
0 commit comments