diff options
| author | ruki <[email protected]> | 2022-09-10 00:23:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-10 00:23:05 +0800 |
| commit | ab747804e6d647b92f67bd71c93b59b518215786 (patch) | |
| tree | 0fba5009cfae0ebe5c29a08f3df8e5bd09ca6577 | |
| parent | 0833468d324910a5062f567238a6e25c93161e75 (diff) | |
remove unused comments
| -rw-r--r-- | xmake/core/base/os.lua | 14 | ||||
| -rw-r--r-- | xmake/core/base/string.lua | 2 |
2 files changed, 2 insertions, 14 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index cd17fed99..01d77428d 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -196,8 +196,6 @@ end -- the current host is belong to the given hosts? function os._is_host(host, ...) - - -- no host if not host then return false end @@ -212,8 +210,6 @@ end -- the current platform is belong to the given architectures? function os._is_arch(arch, ...) - - -- no arch if not arch then return false end @@ -737,10 +733,8 @@ end -- function os.execv(program, argv, opt) - -- init options - opt = opt or {} - -- is not executable program file? + opt = opt or {} local filename = tostring(program) if not os.isexec(program) then @@ -820,10 +814,8 @@ end -- run command with arguments and return output and error data function os.iorunv(program, argv, opt) - -- init options - opt = opt or {} - -- make temporary output and error file + opt = opt or {} local outfile = os.tmpfile() local errfile = os.tmpfile() @@ -890,8 +882,6 @@ end -- is executable program file? function os.isexec(filepath) - - -- check assert(filepath) -- TODO diff --git a/xmake/core/base/string.lua b/xmake/core/base/string.lua index 686f36d18..43b0096b4 100644 --- a/xmake/core/base/string.lua +++ b/xmake/core/base/string.lua @@ -155,8 +155,6 @@ end -- try to format function string.tryformat(format, ...) - - -- attempt to format it local ok, str = pcall(string.format, format, ...) if ok then return str |
