Remove obsolete RangeInfo usage in references

This commit is contained in:
Lukas Wirth 2021-01-18 21:10:01 +01:00
parent 342bf41022
commit e31420fbe2
3 changed files with 20 additions and 38 deletions

View file

@ -369,9 +369,7 @@ impl Analysis {
position: FilePosition,
search_scope: Option<SearchScope>,
) -> Cancelable<Option<ReferenceSearchResult>> {
self.with_db(|db| {
references::find_all_refs(&Semantics::new(db), position, search_scope).map(|it| it.info)
})
self.with_db(|db| references::find_all_refs(&Semantics::new(db), position, search_scope))
}
/// Finds all methods and free functions for the file. Does not return tests!