From 0cd23e18b0a078de4af1db78527d743f4ecc1a5a Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Wed, 25 May 2016 09:35:34 +0200 Subject: [PATCH] remove unused --- src/vs/workbench/common/storage.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/vs/workbench/common/storage.ts b/src/vs/workbench/common/storage.ts index f2ccbb6f4ae..693d46c848e 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(); -- GitLab