From 9d2d869787104530310b8b726effc0cdcd423df8 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Fri, 29 Nov 2013 15:23:36 +0100 Subject: [PATCH] Remove dead code: e2lib.getlogflags() Signed-off-by: Tobias Ulmer --- generic/e2lib.lua | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/generic/e2lib.lua b/generic/e2lib.lua index dae915a..d9aff80 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -531,28 +531,6 @@ function e2lib.maxloglevel() return level end ---- get log flags for calling subtools with the same log settings --- @return string: a string holding command line flags -function e2lib.getlogflags() - local logflags = "" - if e2lib.getlog(1) then - logflags = "--v1" - end - if e2lib.getlog(2) then - logflags = logflags .. " --v2" - end - if e2lib.getlog(3) then - logflags = logflags .. " --v3" - end - if e2lib.getlog(4) then - logflags = logflags .. " --v4" - end - if e2lib.globals.log_debug then - logflags = logflags .. " --log-debug" - end - return " " .. logflags -end - --- log to the debug logfile, and log to console if getlog(level) -- @param level number: loglevel -- @param format string: format string -- 2.39.5