From: Tobias Ulmer Date: Wed, 21 Sep 2016 19:07:19 +0000 (+0200) Subject: e2tool: remove last remains of e2tool_ftab X-Git-Tag: e2factory-2.3.15rc1~88 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=27d6d90635d288f76d880c3c5d40a629f70b994c;p=e2factory.git e2tool: remove last remains of e2tool_ftab Signed-off-by: Tobias Ulmer --- diff --git a/local/e2tool.lua b/local/e2tool.lua index a418380..8348e76 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -55,9 +55,6 @@ local strict = require("strict") local tools = require("tools") local url = require("url") --- Build function table, see end of file for details. -local e2tool_ftab = {} - --- Info table contains servers, caches and more... -- @table info -- @field current_tool Name of the current local tool (string). @@ -643,13 +640,6 @@ function e2tool.collect_project_info(info, skip_load_config) end end - for _,collect_project_info_cb in ipairs(e2tool_ftab.collect_project_info) do - rc, re = collect_project_info_cb(info) - if not rc then - return false, e:cat(re) - end - end - rc, re = check_project_info() if not rc then return false, re @@ -1062,39 +1052,6 @@ function e2tool.print_selection(info, resultvec) return true end ---- Collect project info callback function signature. --- Called to populate the info table, not to be confused with the --- "collect_project" plugin feature. --- @function collect_project_info_cb --- @param info Info table. --- @return True on success, false on error. --- @return Error object on failure - ---- Register collect project info. --- @param info Info table. --- @param func collect_project_info_cb function. --- @return True on success, false on error. --- @return Error object on failure. --- @see collect_project_info_cb -function e2tool.register_collect_project_info(info, func) - if type(info) ~= "table" or type(func) ~= "function" then - return false, err.new("register_collect_project_info: invalid argument") - end - table.insert(e2tool_ftab.collect_project_info, func) - return true -end - ---- Function table, driving the build process. Contains further tables to --- which e2factory core and plugins add functions that comprise the --- build process. --- @field collect_project_info Called f(info). --- @see collect_project_info_cb -e2tool_ftab = { - collect_project_info = {}, -} - -strict.lock(e2tool_ftab) - return strict.lock(e2tool) -- vim:sw=4:sts=4:et: