From bf2c317ae51038328ac10d15b649a79c7ca3cae9 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Fri, 19 Jun 2009 13:54:33 +0200 Subject: [PATCH] remove support for calling the finish hook Signed-off-by: Gordon Hecker --- generic/e2lib.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 6499ba9..05477fd 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -70,7 +70,6 @@ e2lib = { env = {}, last_output = false, abort_hook = false, - finish_hook = false, tmpdirs = {}, tmpfiles = {}, enable_invocation_log = false, @@ -491,17 +490,13 @@ function e2lib.log_invocation(info, args) end end ---- exit from the tool, cleaning up temporary files and directories and --- running the finish_hook before. +--- 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. function e2lib.finish(rc) if not rc then rc = 0 end - if e2lib.finish_hook then - e2lib.finish_hook(rc) - end e2lib.rmtempdirs() e2lib.rmtempfiles() os.exit(rc) -- 2.39.5