From 5ceac6455385c66a8ecb5ba456dce13180ce5925 Mon Sep 17 00:00:00 2001 From: EthanHealy01 Date: Fri, 5 Sep 2025 13:51:02 +0100 Subject: [PATCH] remove unused imports and variables --- frontend/src/components/shared/Tooltip.tsx | 2 +- frontend/src/utils/bulkselection/parseSelection.test.ts | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/frontend/src/components/shared/Tooltip.tsx b/frontend/src/components/shared/Tooltip.tsx index dc2fcbb06..160857a50 100644 --- a/frontend/src/components/shared/Tooltip.tsx +++ b/frontend/src/components/shared/Tooltip.tsx @@ -1,7 +1,7 @@ import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react'; import { createPortal } from 'react-dom'; import LocalIcon from './LocalIcon'; -import { addEventListenerWithCleanup, isClickOutside } from '../../utils/genericUtils'; +import { addEventListenerWithCleanup } from '../../utils/genericUtils'; import { useTooltipPosition } from '../../hooks/useTooltipPosition'; import { TooltipTip } from '../../types/tips'; import { TooltipContent } from './tooltip/TooltipContent'; diff --git a/frontend/src/utils/bulkselection/parseSelection.test.ts b/frontend/src/utils/bulkselection/parseSelection.test.ts index bb1bbd76e..de674844c 100644 --- a/frontend/src/utils/bulkselection/parseSelection.test.ts +++ b/frontend/src/utils/bulkselection/parseSelection.test.ts @@ -1,13 +1,6 @@ import { describe, it, expect } from 'vitest'; import { parseSelection } from './parseSelection'; -// Helper to stringify result for readability -function arr(max: number, fn: (i: number) => boolean): number[] { - const out: number[] = []; - for (let i = 1; i <= max; i++) if (fn(i)) out.push(i); - return out; -} - describe('parseSelection', () => { const max = 120;