summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-05-06 23:43:57 +0200
committerThomas Haller <thaller@redhat.com>2020-05-06 23:43:57 +0200
commit35b5229ee3d18ee46556062ca7ce2f916349b58d (patch)
treeb69c292fa86f3c45143965c5b5109b6895306f58
parent0c47270a7e2764442edb5f9ac4fb6105722bd620 (diff)
downloadNetworkManager-th/lgtm-com-fixes-1.tar.gz
examples: remove unused code from "examples/python/dbus/vpn.py"th/lgtm-com-fixes-1
lgtm.com says "The value assigned to local variable all_connections is never used". Just drop the entire statement. It's not right there.
-rwxr-xr-xexamples/python/dbus/vpn.py1
1 files changed, 0 insertions, 1 deletions
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)