fix(lint): remove unused isBackendIconKnown, unblocking CI

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.
This commit is contained in:
Steven RYDELL
2026-08-01 19:31:57 +02:00
parent 95053d7dc8
commit 09910a7bf9
-6
View File
@@ -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 { interface BackendVariantIconProps {
variant: { name: string; label: string }; variant: { name: string; label: string };
className?: string; className?: string;