From 4682586002f1320c38d0ef8c64c8fc7f6e4b1476 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Wed, 17 Jun 2026 13:41:17 +0300 Subject: [PATCH] refactor: remove unused getBrokerOperationImpactLabel helper --- .../frontend/src/pages/broker/brokerDisplay.test.ts | 8 -------- apps/frontend/src/pages/broker/brokerDisplay.ts | 13 ------------- 2 files changed, 21 deletions(-) diff --git a/apps/frontend/src/pages/broker/brokerDisplay.test.ts b/apps/frontend/src/pages/broker/brokerDisplay.test.ts index eabb2f0..8713790 100644 --- a/apps/frontend/src/pages/broker/brokerDisplay.test.ts +++ b/apps/frontend/src/pages/broker/brokerDisplay.test.ts @@ -3,7 +3,6 @@ import type { BrokerOperation, BrokerPosition } from '../../api/responses'; import { getBrokerInstrumentPath, getBrokerOperationImpact, - getBrokerOperationImpactLabel, getBrokerOperationTypeLabel, getBrokerPositionGroup, } from './brokerDisplay'; @@ -191,11 +190,4 @@ describe('broker display helpers', () => { ), ).toBe('adds'); }); - - it('provides Russian impact labels', () => { - expect(getBrokerOperationImpactLabel('adds')).toBe('Пополняет'); - expect(getBrokerOperationImpactLabel('reduces')).toBe('Списывает'); - expect(getBrokerOperationImpactLabel('neutral')).toBe('Перекладка'); - expect(getBrokerOperationImpactLabel('unknown')).toBe('Неясно'); - }); }); diff --git a/apps/frontend/src/pages/broker/brokerDisplay.ts b/apps/frontend/src/pages/broker/brokerDisplay.ts index 716fc3d..e3191e9 100644 --- a/apps/frontend/src/pages/broker/brokerDisplay.ts +++ b/apps/frontend/src/pages/broker/brokerDisplay.ts @@ -161,16 +161,3 @@ export function getBrokerOperationImpact( return 'unknown'; } - -export function getBrokerOperationImpactLabel(impact: BrokerOperationImpact): string { - switch (impact) { - case 'adds': - return 'Пополняет'; - case 'reduces': - return 'Списывает'; - case 'neutral': - return 'Перекладка'; - case 'unknown': - return 'Неясно'; - } -}