]> git.e2factory.org Git - e2factory.git/commitdiff
e2option: remove unused optionlist
authorTobias Ulmer <tu@emlix.com>
Wed, 2 Nov 2016 14:25:15 +0000 (15:25 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2option.lua

index a52713fe3920cace98e59f52005210bbf7c3cdf7..fb950e640daf5422b28d02d66f7296617c93a005 100644 (file)
@@ -31,7 +31,6 @@ local tools = require("tools")
 
 local options = {}
 local aliases = {}
-local optionlist = {} -- ordered list of option names
 
 --- e2option.parse() result is stored in this table for later reference.
 -- @table opts
@@ -55,7 +54,6 @@ function e2option.flag(name, doc, func, category)
         default = true,
         category = category
     }
-    table.insert(optionlist, name)
 end
 
 --- register an option with argument
@@ -76,7 +74,6 @@ function e2option.option(name, doc, default, func, argname)
         default=default or true,
         argumentname=argname or "ARGUMENT"
     }
-    table.insert(optionlist, name)
 end
 
 --- register an alias for an option