diff options
author | Dan Winship <danw@gnome.org> | 2013-12-05 08:50:10 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-01-23 15:14:49 -0500 |
commit | 3d30ff01ef1d78cee8169f5bb464b988c8ac817b (patch) | |
tree | 61022ec480d5fef8e2ff941a313d06c621c829b8 /src/nm-policy.c | |
parent | 6c332f33aaaffca73917b44cb816c2f170428399 (diff) | |
download | NetworkManager-3d30ff01ef1d78cee8169f5bb464b988c8ac817b.tar.gz |
core: remove useless NMSettings::connections-loaded signal
NMSettings (and NMConnectionProvider) had a signal to indicate when it
had loaded the connections, but in reality this always happened before
nm_settings_new() returned (as a side effect of calling
unmanaged_specs_changed()) and so no one else would ever actually see
the signal. So just kill it.
Diffstat (limited to 'src/nm-policy.c')
-rw-r--r-- | src/nm-policy.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/nm-policy.c b/src/nm-policy.c index 0a0fe3f672..d8f64475a9 100644 --- a/src/nm-policy.c +++ b/src/nm-policy.c @@ -1835,19 +1835,6 @@ connection_added (NMSettings *settings, } static void -connections_loaded (NMSettings *settings, gpointer user_data) -{ - // FIXME: "connections-loaded" signal is emmitted *before* we connect to it - // in nm_policy_new(). So this function is never called. Currently we work around - // that by calling reset_retries_all() in nm_policy_new() - - /* Initialize connections' auto-retries */ - reset_retries_all (settings, NULL); - - schedule_activate_all ((NMPolicy *) user_data); -} - -static void add_or_change_zone_cb (GError *error, gpointer user_data) { NMDevice *device = NM_DEVICE (user_data); @@ -2099,7 +2086,6 @@ nm_policy_new (NMManager *manager, NMSettings *settings) _connect_manager_signal (policy, NM_MANAGER_ACTIVE_CONNECTION_ADDED, active_connection_added); _connect_manager_signal (policy, NM_MANAGER_ACTIVE_CONNECTION_REMOVED, active_connection_removed); - _connect_settings_signal (policy, NM_SETTINGS_SIGNAL_CONNECTIONS_LOADED, connections_loaded); _connect_settings_signal (policy, NM_SETTINGS_SIGNAL_CONNECTION_ADDED, connection_added); _connect_settings_signal (policy, NM_SETTINGS_SIGNAL_CONNECTION_UPDATED, connection_updated); _connect_settings_signal (policy, NM_SETTINGS_SIGNAL_CONNECTION_UPDATED_BY_USER, connection_updated_by_user); |