From 9eedbe108a297f2bf3550866b467007a28534bf5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 29 Aug 2019 11:32:27 +1000 Subject: [PATCH] tools: remove write-only variable from tuhi-live Signed-off-by: Peter Hutterer --- tools/tuhi-live.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/tuhi-live.py b/tools/tuhi-live.py index 8b5c885..977c520 100755 --- a/tools/tuhi-live.py +++ b/tools/tuhi-live.py @@ -142,8 +142,6 @@ def run_live(request_fd_queue, conn_fd): mainloop = GLib.MainLoop() - connected_devices = 0 - def on_disconnect(dev, pspec): mainloop.quit() @@ -154,10 +152,6 @@ def run_live(request_fd_queue, conn_fd): except KeyboardInterrupt: pass finally: - for device in manager.devices: - if device.live: - connected_devices += 1 - for device in manager.devices: if device.live and device.connected: logger.info(f'stopping live on {device}')