From 64331d6085c39ac563fa64e2cf2b1a8a17dec38e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 6 May 2020 23:43:57 +0200 Subject: [PATCH] examples: remove unused code from "examples/python/dbus/vpn.py" lgtm.com says "The value assigned to local variable all_connections is never used". Just drop the entire statement. It's not right there. --- examples/python/dbus/vpn.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/python/dbus/vpn.py b/examples/python/dbus/vpn.py index 8939d26206..14fa2f1d2e 100755 --- a/examples/python/dbus/vpn.py +++ b/examples/python/dbus/vpn.py @@ -56,7 +56,6 @@ def get_active_connection_path(uuid): proxy = bus.get_object('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager') iface = dbus.Interface(proxy, dbus_interface='org.freedesktop.DBus.Properties') active_connections = iface.Get('org.freedesktop.NetworkManager', 'ActiveConnections') - all_connections = get_connections() for a in active_connections: proxy = bus.get_object('org.freedesktop.NetworkManager', a)