]> git.e2factory.org Git - e2factory.git/commitdiff
Collect unused function impairs()
authorTobias Ulmer <tu@emlix.com>
Mon, 6 Aug 2012 15:42:19 +0000 (17:42 +0200)
committerTobias Ulmer <tu@emlix.com>
Mon, 6 Aug 2012 15:42:19 +0000 (17:42 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index bc342819cafb7d319d273e93e772fc49eea37b82..3e584aaa1fddccf6415c15dde6e9bfdf47f94399 100644 (file)
@@ -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