diff options
Diffstat (limited to 'crates/ide/src/display')
-rw-r--r-- | crates/ide/src/display/navigation_target.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/crates/ide/src/display/navigation_target.rs b/crates/ide/src/display/navigation_target.rs index 8410bf5a2..522607cb7 100644 --- a/crates/ide/src/display/navigation_target.rs +++ b/crates/ide/src/display/navigation_target.rs | |||
@@ -117,25 +117,6 @@ impl NavigationTarget { | |||
117 | ) | 117 | ) |
118 | } | 118 | } |
119 | 119 | ||
120 | /// Allows `NavigationTarget` to be created from a `DocCommentsOwner` and a `NameOwner` | ||
121 | pub(crate) fn from_doc_commented( | ||
122 | db: &RootDatabase, | ||
123 | named: InFile<&dyn ast::NameOwner>, | ||
124 | node: InFile<&dyn ast::DocCommentsOwner>, | ||
125 | ) -> NavigationTarget { | ||
126 | let name = | ||
127 | named.value.name().map(|it| it.text().clone()).unwrap_or_else(|| SmolStr::new("_")); | ||
128 | let frange = node.map(|it| it.syntax()).original_file_range(db); | ||
129 | |||
130 | NavigationTarget::from_syntax( | ||
131 | frange.file_id, | ||
132 | name, | ||
133 | None, | ||
134 | frange.range, | ||
135 | node.value.syntax().kind(), | ||
136 | ) | ||
137 | } | ||
138 | |||
139 | fn from_syntax( | 120 | fn from_syntax( |
140 | file_id: FileId, | 121 | file_id: FileId, |
141 | name: SmolStr, | 122 | name: SmolStr, |