From 8d377f76b7b1f788a990773af42fea5ef2dc3a30 Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Tue, 6 May 2025 15:42:27 +0300 Subject: [PATCH] chore: remove dead code (#9906) --- .../BillingDetailsEnterpriseConsumption.tsx | 2 - .../LegacyConstraintExecution.tsx | 59 ------------------- 2 files changed, 61 deletions(-) delete mode 100644 frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/PlaygroundStrategyExecution/ConstraintExecution/LegacyConstraintExecution.tsx diff --git a/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingDetailsEnterpriseConsumption.tsx b/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingDetailsEnterpriseConsumption.tsx index dd86b8684c..702fc624e0 100644 --- a/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingDetailsEnterpriseConsumption.tsx +++ b/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingDetailsEnterpriseConsumption.tsx @@ -1,9 +1,7 @@ import { styled, Typography, Grid, Button } from '@mui/material'; -import { Link } from 'react-router-dom'; import { GridRow } from 'component/common/GridRow/GridRow'; import { GridCol } from 'component/common/GridCol/GridCol'; import LaunchIcon from '@mui/icons-material/Launch'; -import { useInstanceStatus } from 'hooks/api/getters/useInstanceStatus/useInstanceStatus'; import { formatApiPath } from 'utils/formatPath'; const StyledInfoLabel = styled(Typography)(({ theme }) => ({ diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/PlaygroundStrategyExecution/ConstraintExecution/LegacyConstraintExecution.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/PlaygroundStrategyExecution/ConstraintExecution/LegacyConstraintExecution.tsx deleted file mode 100644 index 0dad38cf42..0000000000 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/PlaygroundStrategyExecution/ConstraintExecution/LegacyConstraintExecution.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import { Fragment, type VFC } from 'react'; -import type { - PlaygroundConstraintSchema, - PlaygroundRequestSchema, -} from 'openapi'; -import { objectId } from 'utils/objectId'; -import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; -import { StrategySeparator } from 'component/common/StrategySeparator/LegacyStrategySeparator'; -import { styled } from '@mui/material'; -import { ConstraintAccordionView } from 'component/common/LegacyConstraintAccordion/ConstraintAccordionView/ConstraintAccordionView'; -import { ConstraintError } from './ConstraintError/LegacyConstraintError'; -import { ConstraintOk } from './ConstraintOk/LegacyConstraintOk'; - -interface IConstraintExecutionProps { - constraints?: PlaygroundConstraintSchema[]; - input?: PlaygroundRequestSchema; -} - -export const ConstraintExecutionWrapper = styled('div')(() => ({ - width: '100%', - display: 'flex', - flexDirection: 'column', -})); - -export const ConstraintExecution: VFC = ({ - constraints, - input, -}) => { - if (!constraints) return null; - - return ( - - {constraints?.map((constraint, index) => ( - - 0} - show={} - /> - } - elseShow={ - - } - /> - } - /> - - ))} - - ); -};