Skip to content

Commit 71c102f

Browse files
committed
refactor: 필요없는 코드 삭제
1 parent b8dff48 commit 71c102f

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

packages/mcp/src/common/utils.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import relativeTime from "dayjs/plugin/relativeTime.js";
44
import customParseFormat from "dayjs/plugin/customParseFormat.js";
55
import * as cp from "child_process";
66
import type { GitHubRepoInfo } from "./types.js";
7-
import path from "node:path";
8-
import { fileURLToPath } from "node:url";
97

108
dayjs.extend(relativeTime);
119
dayjs.extend(customParseFormat);
@@ -280,21 +278,3 @@ export const CommonUtils = {
280278
return isNaN(parsed) ? 0 : parsed;
281279
},
282280
};
283-
284-
export function getFilename(): string {
285-
if (typeof __filename !== "undefined") return __filename;
286-
try {
287-
const metaUrl = (0, eval)("import.meta.url");
288-
if (metaUrl) return fileURLToPath(metaUrl);
289-
} catch {}
290-
return path.join(process.cwd(), "index.js");
291-
}
292-
293-
export function getDirname(): string {
294-
if (typeof __dirname !== "undefined") return __dirname;
295-
try {
296-
const metaUrl = (0, eval)("import.meta.url");
297-
if (metaUrl) return path.dirname(fileURLToPath(metaUrl));
298-
} catch {}
299-
return process.cwd();
300-
}

0 commit comments

Comments
 (0)