From 82debe15b222cb06f309238b7ef51b0dc8044fc1 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Fri, 6 Jul 2012 17:13:36 +0200 Subject: [PATCH] Remove append_to_file(), unused Signed-off-by: Tobias Ulmer --- generic/e2lib.lua | 15 --------------- 1 file changed, 15 deletions(-) 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. -- 2.39.5