summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils/batchcmds.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/utils/batchcmds.lua')
-rw-r--r--xmake/modules/private/utils/batchcmds.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua
index 0000b7111..eda3887c8 100644
--- a/xmake/modules/private/utils/batchcmds.lua
+++ b/xmake/modules/private/utils/batchcmds.lua
@@ -144,14 +144,6 @@ function _runcmd_rm(cmd, opt)
end
end
--- run command: os.tryrm
-function _runcmd_tryrm(cmd, opt)
- local filepath = cmd.filepath
- if not opt.dryrun then
- os.tryrm(filepath, opt)
- end
-end
-
-- run command: os.rmdir
function _runcmd_rmdir(cmd, opt)
local dir = cmd.dir
@@ -197,7 +189,6 @@ function _runcmd(cmd, opt)
rmdir = _runcmd_rmdir,
cd = _runcmd_cd,
rm = _runcmd_rm,
- tryrm = _runcmd_tryrm,
cp = _runcmd_cp,
mv = _runcmd_mv,
ln = _runcmd_ln
@@ -361,11 +352,6 @@ function batchcmds:rm(filepath, opt)
table.insert(self:cmds(), {kind = "rm", filepath = filepath, opt = opt})
end
--- add command: os.tryrm
-function batchcmds:tryrm(filepath, opt)
- table.insert(self:cmds(), {kind = "tryrm", filepath = filepath, opt = opt})
-end
-
-- add command: os.cp
function batchcmds:cp(srcpath, dstpath, opt)
table.insert(self:cmds(), {kind = "cp", srcpath = srcpath, dstpath = dstpath, opt = opt})