Skip to content

Commit 4f04d84

Browse files
bors[bot]lnicola
andauthored
Merge #10965
10965: minor: Remove dead assists-related function r=Veykril a=lnicola Unless I'm missing something, `assists_with_fixes` seems to be always used and ends up in the same code path. Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents 48cd733 + f5968cf commit 4f04d84

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

crates/ide/src/lib.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -555,24 +555,6 @@ impl Analysis {
555555
.unwrap_or_default())
556556
}
557557

558-
/// Computes assists (aka code actions aka intentions) for the given
559-
/// position. If `resolve == false`, computes enough info to show the
560-
/// lightbulb list in the editor, but doesn't compute actual edits, to
561-
/// improve performance.
562-
pub fn assists(
563-
&self,
564-
config: &AssistConfig,
565-
resolve: AssistResolveStrategy,
566-
frange: FileRange,
567-
) -> Cancellable<Vec<Assist>> {
568-
self.with_db(|db| {
569-
let ssr_assists = ssr::ssr_assists(db, &resolve, frange);
570-
let mut acc = ide_assists::assists(db, config, resolve, frange);
571-
acc.extend(ssr_assists.into_iter());
572-
acc
573-
})
574-
}
575-
576558
/// Computes the set of diagnostics for the given file.
577559
pub fn diagnostics(
578560
&self,

0 commit comments

Comments
 (0)