Remove unused function (#28531)

This commit is contained in:
Andy
2018-11-15 09:34:07 -08:00
committed by GitHub
parent 53bb4e84a2
commit 079f0436f3
2 changed files with 0 additions and 14 deletions

View File

@@ -2783,11 +2783,6 @@ Actual: ${stringify(fullActual)}`);
assert.deepEqual(unique(this.getApplicableRefactorsAtSelection(), r => r.name), names);
}
public verifyRefactor({ name, actionName, refactors }: FourSlashInterface.VerifyRefactorOptions) {
const actualRefactors = this.getApplicableRefactorsAtSelection().filter(r => r.name === name && r.actions.some(a => a.name === actionName));
this.assertObjectsEqual(actualRefactors, refactors);
}
public verifyApplicableRefactorAvailableForRange(negative: boolean) {
const ranges = this.getRanges();
if (!(ranges && ranges.length === 1)) {
@@ -3822,10 +3817,6 @@ namespace FourSlashInterface {
this.state.verifyRefactorsAvailable(names);
}
public refactor(options: VerifyRefactorOptions) {
this.state.verifyRefactor(options);
}
public refactorAvailable(name: string, actionName?: string) {
this.state.verifyRefactorAvailable(this.negative, name, actionName);
}

View File

@@ -174,11 +174,6 @@ declare namespace FourSlashInterface {
applicableRefactorAvailableForRange(): void;
refactorAvailable(name: string, actionName?: string): void;
refactor(options: {
name: string;
actionName: string;
refactors: any[];
}): void;
}
class verify extends verifyNegatable {
assertHasRanges(ranges: Range[]): void;