From cb3a29623bd5ccd4cd3568798c4b5ab731ffcab4 Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Tue, 9 Sep 2025 01:24:19 +0100 Subject: [PATCH] refactor: remove unused getCategoryIconByTitle function and clean up categoryIcons utility --- src/services/dialogService.ts | 1 - src/utils/categoryIcons.ts | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/src/services/dialogService.ts b/src/services/dialogService.ts index 791efba9d..cb3ee7e7a 100644 --- a/src/services/dialogService.ts +++ b/src/services/dialogService.ts @@ -512,7 +512,6 @@ export const useDialogService = () => { showAboutDialog, showExecutionErrorDialog, showTemplateWorkflowsDialog, - // showWorkflowTemplateSelectorDialog, showManagerDialog, showManagerProgressDialog, showApiNodesSignInDialog, diff --git a/src/utils/categoryIcons.ts b/src/utils/categoryIcons.ts index 223381bca..2d59cd8e2 100644 --- a/src/utils/categoryIcons.ts +++ b/src/utils/categoryIcons.ts @@ -50,23 +50,3 @@ export const getCategoryIcon = (categoryId: string): string => { // Return mapped icon or fallback to folder return iconMap[categoryId.toLowerCase()] || 'folder' } - -/** - * Maps category titles to their corresponding Lucide icon names - */ -export const getCategoryIconByTitle = (title: string): string => { - const titleMap: Record = { - 'Getting Started': 'graduation-cap', - 'Generation Type': 'sparkles', - 'Closed Source Models': 'hand-coins', - 'API Nodes': 'hand-coins', - 'Small Models': 'zap', - Performance: 'zap', - 'Mac Compatible': 'command', - 'LoRA Training': 'dumbbell', - Extensions: 'puzzle', - 'Tools & Building': 'wrench' - } - - return titleMap[title] || 'folder' -}