Skip to content

Commit a13426f

Browse files
authored
refactor: delete unused code (#16)
Signed-off-by: Philippe Martin <[email protected]>
1 parent 0999ede commit a13426f

File tree

2 files changed

+0
-82
lines changed

2 files changed

+0
-82
lines changed

packages/common/src/model/kubernetes-contexts-states.ts

Lines changed: 0 additions & 59 deletions
This file was deleted.

packages/extension/src/manager/contexts-manager.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import type { KubeConfig, KubernetesObject, ObjectCache } from '@kubernetes/client-node';
2020

2121
import type { ContextPermission } from '/@common/model/kubernetes-contexts-permissions.js';
22-
import type { ContextGeneralState, ResourceName } from '/@common/model/kubernetes-contexts-states.js';
2322
import type { ResourceCount } from '/@common/model/kubernetes-resource-count.js';
2423
import type { KubernetesContextResources } from '/@common/model/kubernetes-resources.js';
2524
import type { KubernetesTroubleshootingInformation } from '/@common/model/kubernetes-troubleshooting.js';
@@ -203,28 +202,6 @@ export class ContextsManager {
203202
});
204203
}
205204

206-
getContextsGeneralState(): Map<string, ContextGeneralState> {
207-
return new Map<string, ContextGeneralState>();
208-
}
209-
210-
getCurrentContextGeneralState(): ContextGeneralState {
211-
return {
212-
reachable: false,
213-
resources: {
214-
pods: 0,
215-
deployments: 0,
216-
},
217-
};
218-
}
219-
220-
registerGetCurrentContextResources(_resourceName: ResourceName): KubernetesObject[] {
221-
return [];
222-
}
223-
224-
unregisterGetCurrentContextResources(_resourceName: ResourceName): KubernetesObject[] {
225-
return [];
226-
}
227-
228205
/* dispose all disposable resources created by the instance */
229206
dispose(): void {
230207
this.disposeAllHealthChecks();

0 commit comments

Comments
 (0)