From 33930e7a33cd95048f2f17b5f96754414504ec35 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Tue, 13 May 2025 16:34:28 +0800 Subject: [PATCH] chore(utils): remove unused utility functions - Remove getPath function (moved to problem-editor store) - Remove getDifficultyColorClass function (unused) - Keep only core cn utility function --- src/lib/utils.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 6d0925e..7fda296 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -1,27 +1,6 @@ import { twMerge } from "tailwind-merge"; import { clsx, type ClassValue } from "clsx"; -import type { EditorLanguageConfig, Difficulty } from "@/generated/client"; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); } - -export function getPath( - problemId: string, - editorLanguageConfig: EditorLanguageConfig -) { - return `file:///${problemId}/${editorLanguageConfig.fileName}${editorLanguageConfig.fileExtension}`; -} - -export const getDifficultyColorClass = (difficulty: Difficulty) => { - switch (difficulty) { - case "EASY": - return "text-green-500"; - case "MEDIUM": - return "text-yellow-500"; - case "HARD": - return "text-red-500"; - default: - return "text-gray-500"; - } -};