chore(deadcode): remove unused tooling helpers · openclaw/openclaw@8c0767f
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Filesystem script supports OpenClaw repository automation. |
2 | 2 | import { mkdirSync, mkdtempSync, writeFileSync } from "node:fs"; |
3 | | -import { access, mkdir, open, readFile, rm, writeFile } from "node:fs/promises"; |
| 3 | +import { access, mkdir, open, readFile, writeFile } from "node:fs/promises"; |
4 | 4 | import path from "node:path"; |
5 | 5 | import { repoRoot } from "./host-command.ts"; |
6 | 6 | |
@@ -87,10 +87,6 @@ export async function writeSummaryMarkdown(input: {
|
87 | 87 | return markdownPath; |
88 | 88 | } |
89 | 89 | |
90 | | -export async function cleanupPath(filePath: string): Promise<void> { |
91 | | -await rm(filePath, { force: true, recursive: true }).catch(() => undefined); |
92 | | -} |
93 | | - |
94 | 90 | export function writeExecutable(filePath: string, content: string): void { |
95 | 91 | writeFileSync(filePath, content, { encoding: "utf8", mode: 0o755 }); |
96 | 92 | } |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。