summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-29 20:50:49 +0800
committerruki <[email protected]>2016-02-29 20:50:49 +0800
commite5085252662ae566f0b74682f3ab40e594a7a4fa (patch)
treeb62eaea6db1a3a54c2ed9f5707e61193d11f129c
parentd353b2984472824d0347e0e8a7ffb1112d6ebab2 (diff)
remove some codes for action
-rw-r--r--xmake/core/base/action.lua40
-rwxr-xr-xxmake/core/tasks/config.lua21
2 files changed, 0 insertions, 61 deletions
diff --git a/xmake/core/base/action.lua b/xmake/core/base/action.lua
index d210b2874..acd142b11 100644
--- a/xmake/core/base/action.lua
+++ b/xmake/core/base/action.lua
@@ -146,46 +146,6 @@ function action.done(name)
return _action.done()
end
--- list the all actions
-function action.list()
-
- -- find all action scripts
- local list = {}
- local files = os.match(xmake._CORE_DIR .. "/action/*.lua")
- if files then
- for _, file in ipairs(files) do
- local name = path.basename(file)
- if name and name ~= "build" then
- table.insert(list, name)
- end
- end
- end
-
- -- ok?
- return list
-end
-
--- get the all action menus
-function action.menu()
-
- -- get all actions
- local menus = {}
- local actions = action.list()
- for _, name in ipairs(actions) do
-
- -- load action
- local a = action._load(name)
- if a and a.menu then
- local m = a.menu()
- if m then
- menus[name] = m
- end
- end
- end
-
- -- ok?
- return menus
-end
-- return module: action
return action
diff --git a/xmake/core/tasks/config.lua b/xmake/core/tasks/config.lua
index c53d4b61d..bb4e71ec9 100755
--- a/xmake/core/tasks/config.lua
+++ b/xmake/core/tasks/config.lua
@@ -26,13 +26,6 @@ task("config")
-- set category
set_task_category("action")
- -- on before
- on_task_before(function ()
-
- print("before")
-
- end)
-
-- on run
on_task_run(function ()
@@ -40,20 +33,6 @@ task("config")
end)
- -- on after
- on_task_after(function ()
-
- print("after")
-
- end)
-
- -- on failure
- on_task_failure(function ()
-
- print("failure")
-
- end)
-
-- set menu
set_task_menu({
-- usage