From 5d526be1eb1fb149b0bad6cc01c59e511bf37338 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Mon, 6 Aug 2012 17:42:19 +0200 Subject: [PATCH] Collect unused function impairs() Signed-off-by: Tobias Ulmer --- generic/e2lib.lua | 16 ---------------- 1 file changed, 16 deletions(-) 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 -- 2.39.5