From 366aeff44d531acd6720677085fb7c8e8262b259 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 24 Aug 2017 16:23:30 +0200 Subject: [PATCH] library: remove unused argument @mainloop_iterate from list functions If the caller wants to iterate the mainloop, he shall just do it. --- library/network_connections.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/library/network_connections.py b/library/network_connections.py index f6f2c3c..e321ccd 100755 --- a/library/network_connections.py +++ b/library/network_connections.py @@ -1209,9 +1209,7 @@ class NMUtil: return True return False - def active_connection_list(self, connections = None, black_list = None, mainloop_iterate = True): - if mainloop_iterate: - Util.GMainLoop_iterate_all() + def active_connection_list(self, connections = None, black_list = None): active_cons = self.nmclient.get_active_connections() if connections: connections = set(connections) @@ -1221,9 +1219,7 @@ class NMUtil: active_cons = list(active_cons) return active_cons; - def connection_list(self, name = None, uuid = None, black_list = None, black_list_names = None, black_list_uuids = None, mainloop_iterate = True): - if mainloop_iterate: - Util.GMainLoop_iterate_all() + def connection_list(self, name = None, uuid = None, black_list = None, black_list_names = None, black_list_uuids = None): cons = self.nmclient.get_connections() if name is not None: cons = [c for c in cons if c.get_id() == name]