Skip to content

Commit 079f043

Browse files
author
Andy
authored
Remove unused function (#28531)
1 parent 53bb4e8 commit 079f043

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/harness/fourslash.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2783,11 +2783,6 @@ Actual: ${stringify(fullActual)}`);
27832783
assert.deepEqual(unique(this.getApplicableRefactorsAtSelection(), r => r.name), names);
27842784
}
27852785

2786-
public verifyRefactor({ name, actionName, refactors }: FourSlashInterface.VerifyRefactorOptions) {
2787-
const actualRefactors = this.getApplicableRefactorsAtSelection().filter(r => r.name === name && r.actions.some(a => a.name === actionName));
2788-
this.assertObjectsEqual(actualRefactors, refactors);
2789-
}
2790-
27912786
public verifyApplicableRefactorAvailableForRange(negative: boolean) {
27922787
const ranges = this.getRanges();
27932788
if (!(ranges && ranges.length === 1)) {
@@ -3822,10 +3817,6 @@ namespace FourSlashInterface {
38223817
this.state.verifyRefactorsAvailable(names);
38233818
}
38243819

3825-
public refactor(options: VerifyRefactorOptions) {
3826-
this.state.verifyRefactor(options);
3827-
}
3828-
38293820
public refactorAvailable(name: string, actionName?: string) {
38303821
this.state.verifyRefactorAvailable(this.negative, name, actionName);
38313822
}

tests/cases/fourslash/fourslash.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,6 @@ declare namespace FourSlashInterface {
174174
applicableRefactorAvailableForRange(): void;
175175

176176
refactorAvailable(name: string, actionName?: string): void;
177-
refactor(options: {
178-
name: string;
179-
actionName: string;
180-
refactors: any[];
181-
}): void;
182177
}
183178
class verify extends verifyNegatable {
184179
assertHasRanges(ranges: Range[]): void;

0 commit comments

Comments
 (0)