Skip to content

Commit eac90c1

Browse files
author
Benjamin Pasero
committed
untitled - remove unused event
1 parent 61ac885 commit eac90c1

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/vs/workbench/services/untitled/common/untitledTextEditorInput.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import { IEncodingSupport, EncodingMode, Verbosity, IModeSupport, TextResourceEditorInput } from 'vs/workbench/common/editor';
77
import { IUntitledTextEditorModel } from 'vs/workbench/services/untitled/common/untitledTextEditorModel';
8-
import { Emitter } from 'vs/base/common/event';
98
import { ITextFileService } from 'vs/workbench/services/textfile/common/textfiles';
109
import { ILabelService } from 'vs/platform/label/common/label';
1110
import { IResolvedTextEditorModel } from 'vs/editor/common/services/resolverService';
@@ -21,9 +20,6 @@ export class UntitledTextEditorInput extends TextResourceEditorInput implements
2120

2221
static readonly ID: string = 'workbench.editors.untitledEditorInput';
2322

24-
private readonly _onDidModelChangeEncoding = this._register(new Emitter<void>());
25-
readonly onDidModelChangeEncoding = this._onDidModelChangeEncoding.event;
26-
2723
private modelResolve: Promise<IUntitledTextEditorModel & IResolvedTextEditorModel> | undefined = undefined;
2824

2925
constructor(
@@ -44,7 +40,6 @@ export class UntitledTextEditorInput extends TextResourceEditorInput implements
4440

4541
// re-emit some events from the model
4642
this._register(model.onDidChangeDirty(() => this._onDidChangeDirty.fire()));
47-
this._register(model.onDidChangeEncoding(() => this._onDidModelChangeEncoding.fire()));
4843
this._register(model.onDidChangeName(() => this._onDidChangeLabel.fire()));
4944

5045
// a reverted untitled text editor model renders this input disposed

0 commit comments

Comments
 (0)