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 | |
parent | dddbac68779d068cabfa511bed4ba105bc43d194 (diff) |
dead code
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_analysis/src/imp.rs | 15 | ||||
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 7 |
2 files changed, 1 insertions, 21 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)) { |
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index 476d1b438..65c3eb3ec 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -323,13 +323,6 @@ impl Analysis { | |||
323 | pub fn find_all_refs(&self, position: FilePosition) -> Cancelable<Vec<(FileId, TextRange)>> { | 323 | pub fn find_all_refs(&self, position: FilePosition) -> Cancelable<Vec<(FileId, TextRange)>> { |
324 | self.imp.find_all_refs(position) | 324 | self.imp.find_all_refs(position) |
325 | } | 325 | } |
326 | pub fn doc_comment_for( | ||
327 | &self, | ||
328 | file_id: FileId, | ||
329 | symbol: FileSymbol, | ||
330 | ) -> Cancelable<Option<String>> { | ||
331 | self.imp.doc_comment_for(file_id, symbol) | ||
332 | } | ||
333 | pub fn doc_text_for(&self, file_id: FileId, symbol: FileSymbol) -> Cancelable<Option<String>> { | 326 | pub fn doc_text_for(&self, file_id: FileId, symbol: FileSymbol) -> Cancelable<Option<String>> { |
334 | self.imp.doc_text_for(file_id, symbol) | 327 | self.imp.doc_text_for(file_id, symbol) |
335 | } | 328 | } |