]> git.e2factory.org Git - e2factory.git/commitdiff
Remove dead code: e2lib.getlogflags()
authorTobias Ulmer <tu@emlix.com>
Fri, 29 Nov 2013 14:23:36 +0000 (15:23 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index dae915ae91cfb766e6c501a921d1699ece0cb132..d9aff80e6b2b47f66d06964f87f32056f3802a5e 100644 (file)
@@ -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