diff options
author | Lukas Wirth <[email protected]> | 2021-03-30 17:30:42 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-03-30 17:30:42 +0100 |
commit | c43359b64e98aeb73d3d63c883054644ba27e608 (patch) | |
tree | 6e4c57ff6e37dae9c1ffcc218a1e720ba9d3cf13 /crates/ide_db/src | |
parent | bb56b7a75cfae8297535d55fbddbee9875cbc756 (diff) |
Remove unused Definition::docs
Diffstat (limited to 'crates/ide_db/src')
-rw-r--r-- | crates/ide_db/src/defs.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/crates/ide_db/src/defs.rs b/crates/ide_db/src/defs.rs index 378bac7b2..de0dc2a40 100644 --- a/crates/ide_db/src/defs.rs +++ b/crates/ide_db/src/defs.rs | |||
@@ -79,29 +79,6 @@ impl Definition { | |||
79 | }; | 79 | }; |
80 | Some(name) | 80 | Some(name) |
81 | } | 81 | } |
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 | } | ||
105 | } | 82 | } |
106 | 83 | ||
107 | #[derive(Debug)] | 84 | #[derive(Debug)] |