提交 31d946dd 编写于 作者: M Matt Bierner

Remove empty public ctors

上级 fccc14ab
......@@ -36,8 +36,6 @@ class SelectListRenderer implements IListRenderer<ISelectOptionItem, ISelectList
get templateId(): string { return SELECT_OPTION_ENTRY_TEMPLATE_ID; }
constructor() { }
renderTemplate(container: HTMLElement): ISelectListTemplateData {
const data: ISelectListTemplateData = Object.create(null);
data.disposables = [];
......
......@@ -32,9 +32,6 @@ export class LanguageFeatureRegistry<T> {
private readonly _entries: Entry<T>[] = [];
private readonly _onDidChange = new Emitter<number>();
constructor() {
}
get onDidChange(): Event<number> {
return this._onDidChange.event;
}
......
......@@ -244,9 +244,6 @@ export class ViewTokensChangedEvent {
export class ViewThemeChangedEvent {
public readonly type = ViewEventType.ViewThemeChanged;
constructor() {
}
}
export class ViewTokensColorsChangedEvent {
......@@ -270,9 +267,6 @@ export class ViewZonesChangedEvent {
export class ViewLanguageConfigurationEvent {
public readonly type = ViewEventType.ViewLanguageConfigurationChanged;
constructor() {
}
}
export type ViewEvent = (
......
......@@ -1401,9 +1401,6 @@ class OverviewRulerDecorations {
readonly result: IOverviewRulerDecorations = Object.create(null);
constructor() {
}
public accept(color: string, startLineNumber: number, endLineNumber: number, lane: number): void {
let prev = this.result[color];
......
......@@ -43,8 +43,6 @@ function serializeElement(element: Element, recursive: boolean): IElement {
export abstract class BaseWindowDriver implements IWindowDriver {
constructor() { }
abstract click(selector: string, xoffset?: number, yoffset?: number): Promise<void>;
abstract doubleClick(selector: string): Promise<void>;
......
......@@ -203,8 +203,6 @@ class State {
private _metadata: string | undefined;
get metadata(): string | undefined { return this._metadata; }
constructor() { }
update(update: StateDelta): StateChange {
const change = new StateChange();
......
......@@ -14,10 +14,6 @@ import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
export class NodeDebugHelperService implements IDebugHelperService {
_serviceBrand: undefined;
constructor(
) {
}
createTelemetryService(configurationService: IConfigurationService, args: string[]): TelemetryService | undefined {
const client = new TelemetryClient(
......@@ -41,4 +37,4 @@ export class NodeDebugHelperService implements IDebugHelperService {
}
}
registerSingleton(IDebugHelperService, NodeDebugHelperService);
\ No newline at end of file
registerSingleton(IDebugHelperService, NodeDebugHelperService);
......@@ -130,8 +130,6 @@ interface ISerializedFileInput {
// Register Editor Input Factory
class FileEditorInputFactory implements IEditorInputFactory {
constructor() { }
serialize(editorInput: EditorInput): string {
const fileEditorInput = <FileEditorInput>editorInput;
const resource = fileEditorInput.getResource();
......
......@@ -129,9 +129,6 @@ interface TaskCustomizationTelemetryEvent {
class TaskMap {
private _store: Map<string, Task[]> = new Map();
constructor() {
}
public forEach(callback: (value: Task[], folder: string) => void): void {
this._store.forEach(callback);
}
......
......@@ -22,8 +22,6 @@ export class TerminalInstanceService implements ITerminalInstanceService {
private readonly _onRequestDefaultShellAndArgs = new Emitter<IDefaultShellAndArgsRequest>();
public get onRequestDefaultShellAndArgs(): Event<IDefaultShellAndArgsRequest> { return this._onRequestDefaultShellAndArgs.event; }
constructor() { }
public async getXtermConstructor(): Promise<typeof XTermTerminal> {
if (!Terminal) {
Terminal = (await import('xterm')).Terminal;
......
......@@ -18,8 +18,6 @@ export class TerminalNativeService implements ITerminalNativeService {
private readonly _onOsResume = new Emitter<void>();
public get onOsResume(): Event<void> { return this._onOsResume.event; }
constructor() { }
public whenFileDeleted(): Promise<void> {
throw new Error('Not implemented');
}
......
......@@ -7,9 +7,6 @@ import { IConfigurationCache, ConfigurationKey } from 'vs/workbench/services/con
export class ConfigurationCache implements IConfigurationCache {
constructor() {
}
async read(key: ConfigurationKey): Promise<string> {
return '';
}
......@@ -19,4 +16,4 @@ export class ConfigurationCache implements IConfigurationCache {
async remove(key: ConfigurationKey): Promise<void> {
}
}
\ No newline at end of file
}
......@@ -61,8 +61,6 @@ suite('EditorGroupsService', () => {
class TestEditorInputFactory implements IEditorInputFactory {
constructor() { }
serialize(editorInput: EditorInput): string {
const testEditorInput = <TestEditorInput>editorInput;
const testInput: ISerializedTestEditorInput = {
......
......@@ -44,8 +44,6 @@ class TestProgressBar {
fInfinite: boolean = false;
fDone: boolean = false;
constructor() { }
infinite() {
this.fDone = null!;
this.fInfinite = true;
......
......@@ -138,8 +138,6 @@ interface ISerializedTestInput {
class TestEditorInputFactory implements IEditorInputFactory {
constructor() { }
serialize(editorInput: EditorInput): string {
let testEditorInput = <TestEditorInput>editorInput;
let testInput: ISerializedTestInput = {
......@@ -1303,4 +1301,4 @@ suite('Workbench editor groups', () => {
assert.equal(dirty1Counter, 1);
assert.equal(label1ChangeCounter, 1);
});
});
\ No newline at end of file
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册