refactor: remove remaining dead code

This commit is contained in:
chengyongru
2026-08-23 19:08:00 +08:00
committed by chengyongru
parent 3852956a71
commit 961b1fdd7d
46 changed files with 85 additions and 250 deletions
+2 -2
View File
@@ -151,7 +151,7 @@ export function splitFilePath(path: string): { directory: string; name: string }
};
}
export function fileKindForPath(path: string): FileReferenceKind {
function fileKindForPath(path: string): FileReferenceKind {
const normalized = path.toLowerCase();
const name = normalized.split(/[\\/]/).pop() ?? normalized;
const ext = name.includes(".") ? name.split(".").pop() ?? "" : "";
@@ -193,7 +193,7 @@ export function fileKindForPath(path: string): FileReferenceKind {
}
}
export function FileReferenceIcon({ kind }: { kind: FileReferenceKind }) {
function FileReferenceIcon({ kind }: { kind: FileReferenceKind }) {
if (kind === "python") {
return (
<svg