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.
This commit is contained in:
Thomas Haller 2020-05-06 23:43:57 +02:00
parent 8ad448444a
commit 64331d6085
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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)