From e88b1aad32a25b7ec498f6f620e86606efb61f06 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Sun, 21 Sep 2025 06:34:43 +0200 Subject: [PATCH] chore: remove unused system info functionality - Deleted `system-info.ts` as it is no longer needed in the codebase. - No changes made to `workday-utils.ts`, just added a new line for consistency. --- actions/system-info.ts | 16 ---------------- lib/workday-utils.ts | 1 + 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 actions/system-info.ts diff --git a/actions/system-info.ts b/actions/system-info.ts deleted file mode 100644 index 54c9204..0000000 --- a/actions/system-info.ts +++ /dev/null @@ -1,16 +0,0 @@ -'use server'; - -import { SystemInfoService } from '@/services/system-info'; - -export async function getSystemInfo() { - try { - const systemInfo = await SystemInfoService.getSystemInfo(); - return { success: true, data: systemInfo }; - } catch (error) { - console.error('Error getting system info:', error); - return { - success: false, - error: error instanceof Error ? error.message : 'Failed to get system info' - }; - } -} diff --git a/lib/workday-utils.ts b/lib/workday-utils.ts index 402745c..95c5ee4 100644 --- a/lib/workday-utils.ts +++ b/lib/workday-utils.ts @@ -80,3 +80,4 @@ export function getDayName(date: Date): string { const days = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi']; return days[date.getDay()]; } +