From: Tobias Ulmer Date: Fri, 29 Nov 2013 14:23:36 +0000 (+0100) Subject: Remove dead code: e2lib.getlogflags() X-Git-Tag: e2factory-2.3.15rc1~323 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=9d2d869787104530310b8b726effc0cdcd423df8;p=e2factory.git Remove dead code: e2lib.getlogflags() Signed-off-by: Tobias Ulmer --- 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