fix: delete 9 dead functions with zero callers (#22697)
This commit is contained in:
parent
70aeebf2df
commit
34213d4446
8 changed files with 0 additions and 107 deletions
|
|
@ -85,18 +85,6 @@ function prepareBinDirectory(binaryName) {
|
|||
return { binDir, targetPath }
|
||||
}
|
||||
|
||||
function symlinkBinary(sourcePath, binaryName) {
|
||||
const { targetPath } = prepareBinDirectory(binaryName)
|
||||
|
||||
fs.symlinkSync(sourcePath, targetPath)
|
||||
console.log(`opencode binary symlinked: ${targetPath} -> ${sourcePath}`)
|
||||
|
||||
// Verify the file exists after operation
|
||||
if (!fs.existsSync(targetPath)) {
|
||||
throw new Error(`Failed to symlink binary to ${targetPath}`)
|
||||
}
|
||||
}
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
if (os.platform() === "win32") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue