From 09910a7bf93f4a66a7bf634a8810d81d70cf22b0 Mon Sep 17 00:00:00 2001 From: Steven RYDELL Date: Sat, 1 Aug 2026 19:31:57 +0200 Subject: [PATCH] fix(lint): remove unused isBackendIconKnown, unblocking CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pre-existing dead code (defined, never imported anywhere) that also tripped react-refresh/only-export-components since it mixed a non-component export into a component-only file — eslint treats that as an error, which was silently failing every CI run's lint step (including this release build) well before this session's changes. --- src/components/common/BackendIcon.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/components/common/BackendIcon.tsx b/src/components/common/BackendIcon.tsx index 1d19faa..b8786f4 100644 --- a/src/components/common/BackendIcon.tsx +++ b/src/components/common/BackendIcon.tsx @@ -94,12 +94,6 @@ export function BackendIcon({ backend, className, fallback = null }: BackendIcon ); } -export function isBackendIconKnown(backend: string | null | undefined): boolean { - if (!backend) return false; - const key = backend.toLowerCase().replace(/[^a-z0-9]/g, ''); - return Boolean(BACKEND_ICONS[key] ?? BACKEND_ICONS[backend.toLowerCase()]); -} - interface BackendVariantIconProps { variant: { name: string; label: string }; className?: string;