Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Fields committed Oct 28, 2022
1 parent 3cc32e0 commit 12a89a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/state/replaceState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Position, TextDocument } from 'vscode';
import { Position } from 'vscode';

type ReplaceModeChange = {
before: string;
Expand Down Expand Up @@ -26,7 +26,7 @@ export class ReplaceState {
this._changes[cursorIdx] = [];
}

constructor(document: TextDocument, startPositions: Position[], timesToRepeat: number = 1) {
constructor(startPositions: Position[], timesToRepeat: number = 1) {
this.timesToRepeat = timesToRepeat;
this._changes = startPositions.map((pos) => []);
}
Expand Down
1 change: 0 additions & 1 deletion src/state/vimState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ export class VimState implements vscode.Disposable {
? {
mode,
replaceState: new ReplaceState(
this.document,
this.cursors.map((cursor) => cursor.stop),
this.recordedState.count
),
Expand Down

0 comments on commit 12a89a7

Please sign in to comment.