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.
This commit is contained in:
Julien Froidefond
2025-09-21 06:34:43 +02:00
parent 3c20df95d9
commit e88b1aad32
2 changed files with 1 additions and 16 deletions

View File

@@ -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'
};
}
}

View File

@@ -80,3 +80,4 @@ export function getDayName(date: Date): string {
const days = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi']; const days = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'];
return days[date.getDay()]; return days[date.getDay()];
} }