mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 17:28:09 +00:00
dead code
This commit is contained in:
parent
dddbac6877
commit
58a631f39a
2 changed files with 1 additions and 21 deletions
|
@ -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<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 @@ impl Analysis {
|
|||
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 a new issue