From: Tobias Ulmer Date: Fri, 6 Jul 2012 15:13:36 +0000 (+0200) Subject: Remove append_to_file(), unused X-Git-Tag: e2factory-2.3.12rc1~32 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=82debe15b222cb06f309238b7ef51b0dc8044fc1;p=e2factory.git Remove append_to_file(), unused Signed-off-by: Tobias Ulmer --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index cd91d36..8aa2323 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -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.