Commit bbcf5444 authored by Dan Williams's avatar Dan Williams Committed by Lubomir Rintel

settings: remove 'do_export' argument from claim_connection()

It was always TRUE, and unused anyway.
parent fe96dbc0
......@@ -95,8 +95,7 @@ EXPORT(nm_settings_connection_replace_and_commit)
static void claim_connection (NMSettings *self,
NMSettingsConnection *connection,
gboolean do_export);
NMSettingsConnection *connection);
static gboolean impl_settings_list_connections (NMSettings *self,
GPtrArray **connections,
......@@ -218,7 +217,7 @@ plugin_connection_added (NMSystemConfigInterface *config,
NMSettingsConnection *connection,
gpointer user_data)
claim_connection (NM_SETTINGS (user_data), connection, TRUE);
claim_connection (NM_SETTINGS (user_data), connection);
static void
......@@ -239,7 +238,7 @@ load_connections (NMSettings *self)
// priority plugin.
for (elt = plugin_connections; elt; elt = g_slist_next (elt))
claim_connection (self, NM_SETTINGS_CONNECTION (elt->data), TRUE);
claim_connection (self, NM_SETTINGS_CONNECTION (elt->data));
g_slist_free (plugin_connections);
......@@ -895,9 +894,7 @@ openconnect_migrate_hack (NMConnection *connection)
static void
claim_connection (NMSettings *self,
NMSettingsConnection *connection,
gboolean do_export)
claim_connection (NMSettings *self, NMSettingsConnection *connection)
NMSettingsPrivate *priv = NM_SETTINGS_GET_PRIVATE (self);
static guint32 ec_counter = 0;
......@@ -1048,7 +1045,7 @@ nm_settings_add_connection (NMSettings *self,
added = nm_system_config_interface_add_connection (plugin, connection, save_to_disk, &add_error);
if (added) {
claim_connection (self, added, TRUE);
claim_connection (self, added);
return added;
nm_log_dbg (LOGD_SETTINGS, "Failed to add %s/'%s': %s",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment