Skip to content

Commit d7029d7

Browse files
committed
Remove unused OwnerNode::ident method.
1 parent 6650252 commit d7029d7

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎compiler/rustc_hir/src/hir.rs‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4332,16 +4332,6 @@ pub enum OwnerNode<'hir> {
43324332
}
43334333

43344334
impl<'hir>OwnerNode<'hir>{
4335-
pubfnident(&self) -> Option<Ident>{
4336-
matchself{
4337-
OwnerNode::Item(Item{ ident, .. })
4338-
| OwnerNode::ForeignItem(ForeignItem{ ident, .. })
4339-
| OwnerNode::ImplItem(ImplItem{ ident, .. })
4340-
| OwnerNode::TraitItem(TraitItem{ ident, .. }) => Some(*ident),
4341-
OwnerNode::Crate(..) | OwnerNode::Synthetic => None,
4342-
}
4343-
}
4344-
43454335
pubfnspan(&self) -> Span{
43464336
matchself{
43474337
OwnerNode::Item(Item{ span, .. })

0 commit comments

Comments
 (0)