Remove unusued arguments

This commit is contained in:
Alex Dima
2017-07-06 15:35:13 +02:00
parent c0cd610e56
commit 7c3bd021bb
4 changed files with 4 additions and 4 deletions
@@ -176,7 +176,7 @@ export class UntitledEditorModel extends BaseTextEditorModel implements IEncodin
this.configuredEncoding = configuration && configuration.files && configuration.files.encoding;
// Listen to content changes
this.textModelChangeListener = this.textEditorModel.onDidChangeContent(e => this.onModelContentChanged());
this.textModelChangeListener = this.textEditorModel.onDidChangeContent(() => this.onModelContentChanged());
return model;
});
@@ -177,7 +177,7 @@ export class KeybindingEditorDecorationsRenderer extends Disposable {
this._updateDecorations = this._register(new RunOnceScheduler(() => this._updateDecorationsNow(), 500));
let model = this._editor.getModel();
this._register(model.onDidChangeContent((e) => this._updateDecorations.schedule()));
this._register(model.onDidChangeContent(() => this._updateDecorations.schedule()));
this._register(this._keybindingService.onDidUpdateKeybindings((e) => this._updateDecorations.schedule()));
this._register({
dispose: () => {
@@ -169,7 +169,7 @@ export class FileMatch extends Disposable {
private bindModel(model: IModel): void {
this._model = model;
this._modelListener = this._model.onDidChangeContent(_ => {
this._modelListener = this._model.onDidChangeContent(() => {
this._updateScheduler.schedule();
});
this._model.onWillDispose(() => this.onModelWillDispose());
@@ -444,7 +444,7 @@ export class TextFileEditorModel extends BaseTextEditorModel implements ITextFil
this.setDirty(false);
}
this.toDispose.push(this.textEditorModel.onDidChangeContent((e) => {
this.toDispose.push(this.textEditorModel.onDidChangeContent(() => {
this.onModelContentChanged();
}));