提交 0cd23e18 编写于 作者: B Benjamin Pasero

remove unused

上级 93b53a52
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册