summaryrefslogtreecommitdiff
path: root/xmake/core/base/utils.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-05-25 12:59:23 +0800
committerruki <[email protected]>2016-05-25 12:59:23 +0800
commitaf0d4247f488cdec9f0ba0a05f484e8f9fcfa59b (patch)
tree556816ba5df8a1ca41780dcee1d36b9480c0d31b /xmake/core/base/utils.lua
parentc8f23de807e6efcd6b797a6dde6366d67f64906d (diff)
dump deprecated entries
Diffstat (limited to 'xmake/core/base/utils.lua')
-rw-r--r--xmake/core/base/utils.lua20
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