Skip to content

Commit 949b797

Browse files
committed
Remove legacy query data
Signed-off-by: worksofliam <[email protected]>
1 parent f3e75d2 commit 949b797

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/Storage.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,6 @@ export class ConnectionStorage extends Storage {
5959
return this.set(SERVERCOMPONENT_KEY, name);
6060
}
6161

62-
/**
63-
* Eventually we will want to remove this function, but for now we need to fix the past queries
64-
*/
65-
fixPastQueries() {
66-
const currentList = this.getPastQueries() as (string|QueryHistoryItem)[];
67-
const hasOldFormat = currentList.some(item => typeof item === `string`);
68-
if (hasOldFormat) {
69-
const newList = currentList.map(item => {
70-
if (typeof item === `string`) {
71-
return { query: item, unix: Math.floor(Date.now() / 1000) - 86400 };
72-
} else {
73-
return item;
74-
}
75-
});
76-
return this.setPastQueries(newList);
77-
}
78-
}
79-
8062
getPastQueries() {
8163
return this.get<QueryList>(QUERIES_KEY) || [];
8264
}

src/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export async function onConnectOrServerInstall(): Promise<boolean> {
1919

2020
Config.setConnectionName(instance.getConnection().currentConnectionName);
2121

22-
await Config.fixPastQueries();
23-
2422
osDetail = new IBMiDetail();
2523

2624
await osDetail.fetchSystemInfo();

0 commit comments

Comments
 (0)