summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-05-06 23:43:57 +0200
committerThomas Haller <thaller@redhat.com>2020-05-07 13:58:16 +0200
commit64331d6085c39ac563fa64e2cf2b1a8a17dec38e (patch)
tree2da8933c1abb5005da823b6342416beb52c50c88 /examples
parent8ad448444a14cbb421e89509da9c2a5d30eb4004 (diff)
downloadNetworkManager-64331d6085c39ac563fa64e2cf2b1a8a17dec38e.tar.gz
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.
Diffstat (limited to 'examples')
-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)