From 5027a893d8ca043738f6601e5349ddc03148995e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 13 Oct 2024 22:24:18 +0200 Subject: [PATCH] pl-fe: Remove unused code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/utils/numbers.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/pl-fe/src/utils/numbers.tsx b/packages/pl-fe/src/utils/numbers.tsx index 5f19c826a..3524dbcee 100644 --- a/packages/pl-fe/src/utils/numbers.tsx +++ b/packages/pl-fe/src/utils/numbers.tsx @@ -1,13 +1,9 @@ import React from 'react'; import { FormattedNumber } from 'react-intl'; -import { z } from 'zod'; /** Check if a value is REALLY a number. */ const isNumber = (value: unknown): value is number => typeof value === 'number' && !isNaN(value); -/** The input is a number and is not NaN. */ -const realNumberSchema = z.coerce.number().refine(n => !isNaN(n)); - const roundDown = (num: number) => { if (num >= 100 && num < 1000) { num = Math.floor(num); @@ -55,7 +51,6 @@ const isIntegerId = (id: string): boolean => new RegExp(/^-?[0-9]+$/g).test(id); export { isNumber, - realNumberSchema, roundDown, shortNumberFormat, isIntegerId,