From 58a631f39ab7d3219d7972a26f79b0716024adb3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 28 Dec 2018 00:01:56 +0300 Subject: dead code --- crates/ra_analysis/src/imp.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'crates/ra_analysis/src/imp.rs') 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::*; use salsa::{Database, ParallelDatabase}; use hir::{ - self, - FnSignatureInfo, - Problem, - source_binder, + self, FnSignatureInfo, Problem, source_binder, }; use ra_db::{FilesDatabase, SourceRoot, SourceRootId, SyntaxDatabase}; use ra_editor::{self, FileSymbol, find_node_at_offset, LineIndex, LocalEdit, Severity}; @@ -329,16 +326,6 @@ impl AnalysisImpl { Ok(Some((binding, descr))) } } - - pub fn doc_comment_for( - &self, - file_id: FileId, - symbol: FileSymbol, - ) -> Cancelable> { - let file = self.db.source_file(file_id); - - Ok(symbol.docs(&file)) - } pub fn doc_text_for(&self, file_id: FileId, symbol: FileSymbol) -> Cancelable> { let file = self.db.source_file(file_id); let result = match (symbol.description(&file), symbol.docs(&file)) { -- cgit v1.2.3