]> git.e2factory.org Git - e2factory.git/commitdiff
Remove append_to_file(), unused
authorTobias Ulmer <tu@emlix.com>
Fri, 6 Jul 2012 15:13:36 +0000 (17:13 +0200)
committerTobias Ulmer <tu@emlix.com>
Fri, 6 Jul 2012 15:13:36 +0000 (17:13 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index cd91d3601779d434d27080cd747c4d53f75205e8..8aa232304388bc69a5846f724fffb744fba7e9ff 100644 (file)
@@ -584,21 +584,6 @@ function rotate_log(file)
   return true, nil
 end
 
---- append a line to a file
--- @param file string: filename
--- @param line string: a line to append to the file
--- @return bool
--- @return nil, an error string on error
-local function append_to_file(file, line)
-  local f, msg = io.open(file, "a+")
-  if not f then
-    return false, msg
-  end
-  f:write(line)
-  f:close()
-  return true, nil
-end
-
 --- exit from the tool, cleaning up temporary files and directories
 -- @param rc number: return code (optional, defaults to 0)
 -- @return This function does not return.