diff options
Diffstat (limited to 'xmake/core/base/utils.lua')
| -rw-r--r-- | xmake/core/base/utils.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua index 5d69bdcd0..f5c863c97 100644 --- a/xmake/core/base/utils.lua +++ b/xmake/core/base/utils.lua @@ -68,31 +68,11 @@ function utils.warning(msg, ...) utils._WARNINGS = utils._WARNINGS or {} local warnings = utils._WARNINGS - -- the cached file path - local cachedpath = path.translate(xmake._PROJECT_DIR .. "/.xmake/warnings") - - -- load warnings from the cached file - local cachedfile = io.open(cachedpath, "r") - if cachedfile then - for line in cachedfile:lines() do - warnings[line] = true - end - end - -- trace only once if not warnings[msg] then print(msg) warnings[msg] = true end - - -- cache warnings - cachedfile = io.open(cachedpath, "w") - if cachedfile then - for line, _ in pairs(warnings) do - cachedfile:write(line .. "\n") - end - cachedfile:close() - end end -- ifelse, a? b : c |
