Skip to content

Commit c43359b

Browse files
committed
Remove unused Definition::docs
1 parent bb56b7a commit c43359b

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

crates/ide_db/src/defs.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -79,29 +79,6 @@ impl Definition {
7979
};
8080
Some(name)
8181
}
82-
83-
pub fn docs(&self, db: &RootDatabase) -> Option<hir::Documentation> {
84-
match self {
85-
Definition::Macro(it) => it.docs(db),
86-
Definition::Field(it) => it.docs(db),
87-
Definition::ModuleDef(def) => match def {
88-
hir::ModuleDef::Module(it) => it.docs(db),
89-
hir::ModuleDef::Function(it) => it.docs(db),
90-
hir::ModuleDef::Adt(def) => match def {
91-
hir::Adt::Struct(it) => it.docs(db),
92-
hir::Adt::Union(it) => it.docs(db),
93-
hir::Adt::Enum(it) => it.docs(db),
94-
},
95-
hir::ModuleDef::Variant(it) => it.docs(db),
96-
hir::ModuleDef::Const(it) => it.docs(db),
97-
hir::ModuleDef::Static(it) => it.docs(db),
98-
hir::ModuleDef::Trait(it) => it.docs(db),
99-
hir::ModuleDef::TypeAlias(it) => it.docs(db),
100-
hir::ModuleDef::BuiltinType(_) => None,
101-
},
102-
_ => None,
103-
}
104-
}
10582
}
10683

10784
#[derive(Debug)]

0 commit comments

Comments
 (0)