diff options
| -rw-r--r-- | xmake/core/base/action.lua | 40 | ||||
| -rwxr-xr-x | xmake/core/tasks/config.lua | 21 |
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 |
