File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -59,24 +59,6 @@ export class ConnectionStorage extends Storage {
59
59
return this . set ( SERVERCOMPONENT_KEY , name ) ;
60
60
}
61
61
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
-
80
62
getPastQueries ( ) {
81
63
return this . get < QueryList > ( QUERIES_KEY ) || [ ] ;
82
64
}
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ export async function onConnectOrServerInstall(): Promise<boolean> {
19
19
20
20
Config . setConnectionName ( instance . getConnection ( ) . currentConnectionName ) ;
21
21
22
- await Config . fixPastQueries ( ) ;
23
-
24
22
osDetail = new IBMiDetail ( ) ;
25
23
26
24
await osDetail . fetchSystemInfo ( ) ;
You can’t perform that action at this time.
0 commit comments