From 9e2ce9b7e5f4635a78ba6ef7a45f23cdc1cecfe2 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 2 Nov 2016 15:25:15 +0100 Subject: [PATCH] e2option: remove unused optionlist Signed-off-by: Tobias Ulmer --- generic/e2option.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/generic/e2option.lua b/generic/e2option.lua index a52713f..fb950e6 100644 --- a/generic/e2option.lua +++ b/generic/e2option.lua @@ -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 -- 2.39.5