From ea09fcc4bb1d44420dfe7b59cb88e7ae814bea8a Mon Sep 17 00:00:00 2001 From: Daniel Karski Date: Fri, 6 Dec 2024 14:20:08 +0100 Subject: [PATCH] [CP-3310] Remove not used action (duplicate) --- .../src/lib/features/featues-action-keys.ts | 2 -- .../lib/features/get-single-feature-config.ts | 27 ------------------- 2 files changed, 29 deletions(-) delete mode 100644 libs/generic-view/store/src/lib/features/get-single-feature-config.ts diff --git a/libs/generic-view/store/src/lib/features/featues-action-keys.ts b/libs/generic-view/store/src/lib/features/featues-action-keys.ts index 204333557a..8e2aa06a46 100644 --- a/libs/generic-view/store/src/lib/features/featues-action-keys.ts +++ b/libs/generic-view/store/src/lib/features/featues-action-keys.ts @@ -11,6 +11,4 @@ export enum FeaturesActions { GetGenericData = "api-actions-get-generic-data", GetAllFeatures = "api-actions-get-all-features", GetSingleFeature = "api-actions-get-single-feature", - GetSingleFeatureConfig = "api-actions-get-single-feature-config", - GetSingleFeatureData = "api-actions-get-single-feature-data", } diff --git a/libs/generic-view/store/src/lib/features/get-single-feature-config.ts b/libs/generic-view/store/src/lib/features/get-single-feature-config.ts deleted file mode 100644 index 620463de5a..0000000000 --- a/libs/generic-view/store/src/lib/features/get-single-feature-config.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) Mudita sp. z o.o. All rights reserved. - * For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md - */ - -import { createAsyncThunk } from "@reduxjs/toolkit" -import { DeviceId } from "Core/device/constants/device-id" -import { ReduxRootState } from "Core/__deprecated__/renderer/store" -import { FeaturesActions } from "./featues-action-keys" -import { getOverviewConfig } from "./get-overview-config.actions" - -export const getSingleFeatureConfig = createAsyncThunk< - undefined, - { deviceId: DeviceId; feature: string }, - { state: ReduxRootState } ->( - FeaturesActions.GetSingleFeatureConfig, - async ({ deviceId, feature }, { getState, dispatch }) => { - switch (feature) { - case "mc-overview": - await dispatch(getOverviewConfig({ deviceId })) - break - } - - return undefined - } -)