From 9cfd905c893ed64c521943edf5fdb167206bb749 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Mon, 20 Aug 2012 11:41:29 +0200 Subject: [PATCH] Remove unused e2option.command() support Signed-off-by: Tobias Ulmer --- generic/e2option.lua | 10 ---------- 1 file changed, 10 deletions(-) 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 -- 2.39.5