From 7aa708be228659a9f30ecd3c2d25119c43569ddc Mon Sep 17 00:00:00 2001 From: kyx236 Date: Sat, 7 Feb 2026 20:21:30 +0800 Subject: [PATCH] refactor(s2a): Remove unused getGroupLabel helper function - Delete getGroupLabel function that was no longer being used in the component - Simplify group display logic by removing redundant label formatting utility - Clean up code to improve maintainability and reduce unused function definitions --- frontend/src/pages/S2AConfig.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frontend/src/pages/S2AConfig.tsx b/frontend/src/pages/S2AConfig.tsx index c3dc130..cdade4b 100644 --- a/frontend/src/pages/S2AConfig.tsx +++ b/frontend/src/pages/S2AConfig.tsx @@ -296,12 +296,6 @@ export default function S2AConfig() { } } - // 获取分组显示文字: "name #id" 或 "#id" - const getGroupLabel = (id: number): string => { - const group = availableGroups.find(g => g.id === id) - return group ? `${group.name} #${id}` : `#${id}` - } - const handleAddGroupId = () => { const id = parseInt(newGroupId, 10) if (!isNaN(id) && !formGroupIds.includes(id)) {