dead code
This commit is contained in:
parent
dddbac6877
commit
58a631f39a
@ -7,10 +7,7 @@
|
||||
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 @@ fn find_binding<'a>(
|
||||
Ok(Some((binding, descr)))
|
||||
}
|
||||
}
|
||||
|
||||
pub fn doc_comment_for(
|
||||
&self,
|
||||
file_id: FileId,
|
||||
symbol: FileSymbol,
|
||||
) -> Cancelable<Option<String>> {
|
||||
let file = self.db.source_file(file_id);
|
||||
|
||||
Ok(symbol.docs(&file))
|
||||
}
|
||||
pub fn doc_text_for(&self, file_id: FileId, symbol: FileSymbol) -> Cancelable<Option<String>> {
|
||||
let file = self.db.source_file(file_id);
|
||||
let result = match (symbol.description(&file), symbol.docs(&file)) {
|
||||
|
@ -323,13 +323,6 @@ pub fn approximately_resolve_symbol(
|
||||
pub fn find_all_refs(&self, position: FilePosition) -> Cancelable<Vec<(FileId, TextRange)>> {
|
||||
self.imp.find_all_refs(position)
|
||||
}
|
||||
pub fn doc_comment_for(
|
||||
&self,
|
||||
file_id: FileId,
|
||||
symbol: FileSymbol,
|
||||
) -> Cancelable<Option<String>> {
|
||||
self.imp.doc_comment_for(file_id, symbol)
|
||||
}
|
||||
pub fn doc_text_for(&self, file_id: FileId, symbol: FileSymbol) -> Cancelable<Option<String>> {
|
||||
self.imp.doc_text_for(file_id, symbol)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user