]> git.e2factory.org Git - e2factory.git/commitdiff
Remove unused global variable 'last_output'
authorTobias Ulmer <tu@emlix.com>
Wed, 10 Jul 2013 18:09:19 +0000 (20:09 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:01:23 +0000 (15:01 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index 4b76a5f9df4c194d162bfab5b92fd0e2378f953a..3e9d7160771aa86fcfb4176b9f056881c25452b8 100644 (file)
@@ -82,7 +82,6 @@ e2lib.globals = {
     hostname = nil,
     termwidth = 72,
     env = {},
-    last_output = false,
     tmpdirs = {},
     tmpfiles = {},
     default_projects_server = "projects",
@@ -1155,12 +1154,12 @@ end
 -- @return unknown
 function e2lib.callcmd_capture(cmd, capture)
     local rc, oread, owrite, devnull, pid
+
     local function autocapture(...)
         local msg = table.concat({...})
         e2lib.log(3, msg)
-        e2lib.globals.last_output = msg
     end
-    e2lib.globals.last_output = false
+
     capture = capture or autocapture
     rc, oread, owrite = luafile.pipe()
     owrite:setlinebuf()