diff --git a/src/vs/workbench/common/storage.ts b/src/vs/workbench/common/storage.ts index f2ccbb6f4ae755d69446bf4fe41b1e762c3a8d70..693d46c848e0659033b87360b628087f090dfb58 100644 --- a/src/vs/workbench/common/storage.ts +++ b/src/vs/workbench/common/storage.ts @@ -33,7 +33,6 @@ export class Storage implements IStorageService { private workspaceStorage: IStorage; private globalStorage: IStorage; - private toUnbind: { (): void; }[]; private workspaceKey: string; constructor(contextService: IWorkspaceContextService, globalStorage: IStorage, workspaceStorage = globalStorage) { @@ -42,8 +41,6 @@ export class Storage implements IStorageService { this.globalStorage = globalStorage; this.workspaceStorage = workspaceStorage; - this.toUnbind = []; - // Calculate workspace storage key this.workspaceKey = this.getWorkspaceKey(workspace); @@ -189,12 +186,6 @@ export class Storage implements IStorageService { return value ? true : false; } - public dispose(): void { - while (this.toUnbind.length) { - this.toUnbind.pop()(); - } - } - private toStorageKey(key: string, scope: StorageScope): string { if (scope === StorageScope.GLOBAL) { return Storage.GLOBAL_PREFIX + key.toLowerCase();