about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-03-07 16:38:39 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-03-12 09:54:25 +1100
commitd7029d7e2dbd1b2b4f6578e632e2cef8bd4ba0cc (patch)
tree11b56b76d927fe145b1db095f4699233dcafac77
parent6650252439d4e03368b305c42a10006e36f1545e (diff)
downloadrust-d7029d7e2dbd1b2b4f6578e632e2cef8bd4ba0cc.tar.gz
rust-d7029d7e2dbd1b2b4f6578e632e2cef8bd4ba0cc.zip
Remove unused `OwnerNode::ident` method.
-rw-r--r--compiler/rustc_hir/src/hir.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs
index 53f0194091c..38af4997192 100644
--- a/compiler/rustc_hir/src/hir.rs
+++ b/compiler/rustc_hir/src/hir.rs
@@ -4332,16 +4332,6 @@ pub enum OwnerNode<'hir> {
 }
 
 impl<'hir> OwnerNode<'hir> {
-    pub fn ident(&self) -> Option<Ident> {
-        match self {
-            OwnerNode::Item(Item { ident, .. })
-            | OwnerNode::ForeignItem(ForeignItem { ident, .. })
-            | OwnerNode::ImplItem(ImplItem { ident, .. })
-            | OwnerNode::TraitItem(TraitItem { ident, .. }) => Some(*ident),
-            OwnerNode::Crate(..) | OwnerNode::Synthetic => None,
-        }
-    }
-
     pub fn span(&self) -> Span {
         match self {
             OwnerNode::Item(Item { span, .. })