From: Tobias Ulmer Date: Mon, 6 Aug 2012 15:42:19 +0000 (+0200) Subject: Collect unused function impairs() X-Git-Tag: e2factory-2.3.13rc1~203 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=5d526be1eb1fb149b0bad6cc01c59e511bf37338;p=e2factory.git Collect unused function impairs() Signed-off-by: Tobias Ulmer --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index bc34281..3e584aa 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -1028,22 +1028,6 @@ function compute_hash(iter, ...) return s end --- Iterator functions --- --- impairs(TABLE) --- --- iterates on a table, returning only the value for each entry, not the key --- To be used like: for v in impairs(table) do ... end - -function impairs(table) - local k = nil - local function value(t) - k = next(t, k) - return k and t[k] - end - return value, table -end - -- callcmd: call a command, connecting -- stdin, stdout, stderr to luafile objects