From: Tobias Ulmer Date: Mon, 20 Aug 2012 09:41:29 +0000 (+0200) Subject: Remove unused e2option.command() support X-Git-Tag: e2factory-2.3.13rc1~156 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=9cfd905c893ed64c521943edf5fdb167206bb749;p=e2factory.git Remove unused e2option.command() support Signed-off-by: Tobias Ulmer --- diff --git a/generic/e2option.lua b/generic/e2option.lua index f345368..aa26b07 100644 --- a/generic/e2option.lua +++ b/generic/e2option.lua @@ -35,7 +35,6 @@ local err = require("err") local options = {} local optionlist = {} -local commands = {} -- Option declaration -- @@ -99,11 +98,6 @@ function e2option.option(name, doc, default, func, argname) table.insert(optionlist, name) end ---- XXX command(): undocumented, never called. Remove? -function e2option.command(name, doc, func) - commands[name] = {documentation=doc, command=func, name=name} -end - --- register an alias for an option -- @param alias string: alias name -- @param option string: name of the option to register the alias for @@ -440,10 +434,6 @@ Type e2 --licence for more information. print("\t" .. opt.documentation) end print() - for k, v in pairs(commands) do - io.write(" ", k, command.documentation) - print() - end e2lib.finish(rc) end