refactor: remove unused getBrokerOperationImpactLabel helper

This commit is contained in:
Sergey Krylov 2026-06-17 13:41:17 +03:00
parent d16078fce9
commit 4682586002
2 changed files with 0 additions and 21 deletions

View File

@ -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('Неясно');
});
});

View File

@ -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 'Неясно';
}
}