From 5f94c1ec6269934e3bebd53be2d2f406ee5397c1 Mon Sep 17 00:00:00 2001 From: Samuel Rowe Date: Fri, 29 Jul 2022 11:56:04 +0530 Subject: [PATCH] refactor(frontend): removed unnecessary utility functions --- services/frontend/src/utils/index.ts | 43 +--------------------------- 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/services/frontend/src/utils/index.ts b/services/frontend/src/utils/index.ts index 4971958..830c3cd 100644 --- a/services/frontend/src/utils/index.ts +++ b/services/frontend/src/utils/index.ts @@ -11,14 +11,7 @@ import { values } from "lodash"; import { LOCAL_STORAGE } from "../constants"; -import { - IServiceNodeItem, - INodeLibraryItem, - INodeGroup, - ICanvasConfig, - INetworkTopLevel, - IVolumeTopLevel -} from "../types"; +import { IServiceNodeItem, INodeLibraryItem, INodeGroup } from "../types"; export function ensure( argument: T | undefined | null, @@ -188,40 +181,6 @@ export const getNodeKeyFromConnectionId = (uuid: string) => { return key; }; -export const topLevelVolumeConfigInitialValues = - (): Partial => { - return { - name: "" - }; - }; - -export const topLevelNetworkConfigInitialValues = - (): Partial => { - return { - name: "" - }; - }; - -export const volumeConfigCanvasInitialValues = (): ICanvasConfig => { - return { - node_name: "", - node_icon: "" - }; -}; - -export const networkConfigCanvasInitialValues = (): ICanvasConfig => { - return { - node_name: "" - }; -}; - -export const serviceConfigCanvasInitialValues = (): ICanvasConfig => { - return { - node_name: "", - node_icon: "" - }; -}; - export const toaster = (message: string, type: string) => { const toastConfig = { duration: 3000,