]> git.e2factory.org Git - e2factory.git/commitdiff
Remove unused e2option.command() support
authorTobias Ulmer <tu@emlix.com>
Mon, 20 Aug 2012 09:41:29 +0000 (11:41 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:07 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2option.lua

index f3453687c6d56f2f0373aed3e8baf90125c11771..aa26b07b007c7a4cdd29fd1b28cfed061d38e26a 100644 (file)
@@ -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