diff options
author | Aleksey Kladov <[email protected]> | 2018-12-27 21:01:56 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-27 21:01:56 +0000 |
commit | 58a631f39ab7d3219d7972a26f79b0716024adb3 (patch) | |
tree | b26aada859ee0d17d75faca94f2515c43159f368 /crates/ra_analysis/src/imp.rs | |
parent | dddbac68779d068cabfa511bed4ba105bc43d194 (diff) |
dead code
Diffstat (limited to 'crates/ra_analysis/src/imp.rs')
-rw-r--r-- | crates/ra_analysis/src/imp.rs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs index 14c8d58f1..2556c022b 100644 --- a/crates/ra_analysis/src/imp.rs +++ b/crates/ra_analysis/src/imp.rs | |||
@@ -7,10 +7,7 @@ use rayon::prelude::*; | |||
7 | use salsa::{Database, ParallelDatabase}; | 7 | use salsa::{Database, ParallelDatabase}; |
8 | 8 | ||
9 | use hir::{ | 9 | use hir::{ |
10 | self, | 10 | self, FnSignatureInfo, Problem, source_binder, |
11 | FnSignatureInfo, | ||
12 | Problem, | ||
13 | source_binder, | ||
14 | }; | 11 | }; |
15 | use ra_db::{FilesDatabase, SourceRoot, SourceRootId, SyntaxDatabase}; | 12 | use ra_db::{FilesDatabase, SourceRoot, SourceRootId, SyntaxDatabase}; |
16 | use ra_editor::{self, FileSymbol, find_node_at_offset, LineIndex, LocalEdit, Severity}; | 13 | use ra_editor::{self, FileSymbol, find_node_at_offset, LineIndex, LocalEdit, Severity}; |
@@ -329,16 +326,6 @@ impl AnalysisImpl { | |||
329 | Ok(Some((binding, descr))) | 326 | Ok(Some((binding, descr))) |
330 | } | 327 | } |
331 | } | 328 | } |
332 | |||
333 | pub fn doc_comment_for( | ||
334 | &self, | ||
335 | file_id: FileId, | ||
336 | symbol: FileSymbol, | ||
337 | ) -> Cancelable<Option<String>> { | ||
338 | let file = self.db.source_file(file_id); | ||
339 | |||
340 | Ok(symbol.docs(&file)) | ||
341 | } | ||
342 | pub fn doc_text_for(&self, file_id: FileId, symbol: FileSymbol) -> Cancelable<Option<String>> { | 329 | pub fn doc_text_for(&self, file_id: FileId, symbol: FileSymbol) -> Cancelable<Option<String>> { |
343 | let file = self.db.source_file(file_id); | 330 | let file = self.db.source_file(file_id); |
344 | let result = match (symbol.description(&file), symbol.docs(&file)) { | 331 | let result = match (symbol.description(&file), symbol.docs(&file)) { |