diff --git a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-connection.c b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-connection.c index 3877bb7305..ea8f337661 100644 --- a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-connection.c +++ b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-connection.c @@ -335,7 +335,6 @@ commit_changes (NMSettingsConnection *connection, NMSettingsConnectionCommitFunc callback, gpointer user_data) { - NMIfcfgConnectionPrivate *priv = NM_IFCFG_CONNECTION_GET_PRIVATE ((NMIfcfgConnection *) connection); GError *error = NULL; NMConnection *reread; gboolean same = FALSE, success = FALSE; @@ -369,7 +368,6 @@ commit_changes (NMSettingsConnection *connection, success = writer_update_connection (NM_CONNECTION (connection), IFCFG_DIR, filename, - priv->keyfile, &error); } else { success = writer_new_connection (NM_CONNECTION (connection), diff --git a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c index f098f1295e..d456f1a2a6 100644 --- a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c +++ b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c @@ -2700,7 +2700,6 @@ static gboolean write_connection (NMConnection *connection, const char *ifcfg_dir, const char *filename, - const char *keyfile, char **out_filename, GError **error) { @@ -2884,14 +2883,13 @@ writer_new_connection (NMConnection *connection, char **out_filename, GError **error) { - return write_connection (connection, ifcfg_dir, NULL, NULL, out_filename, error); + return write_connection (connection, ifcfg_dir, NULL, out_filename, error); } gboolean writer_update_connection (NMConnection *connection, const char *ifcfg_dir, const char *filename, - const char *keyfile, GError **error) { if (utils_has_complex_routes (filename)) { @@ -2900,6 +2898,6 @@ writer_update_connection (NMConnection *connection, return FALSE; } - return write_connection (connection, ifcfg_dir, filename, keyfile, NULL, error); + return write_connection (connection, ifcfg_dir, filename, NULL, error); } diff --git a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.h b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.h index 97a9f25252..2662f79b06 100644 --- a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.h +++ b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.h @@ -34,7 +34,6 @@ gboolean writer_new_connection (NMConnection *connection, gboolean writer_update_connection (NMConnection *connection, const char *ifcfg_dir, const char *filename, - const char *keyfile, GError **error); #endif /* _WRITER_H_ */ diff --git a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c index 0e7140e629..e5a0e9d992 100644 --- a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c +++ b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c @@ -1780,7 +1780,6 @@ test_clear_master (void) success = writer_update_connection (connection, TEST_SCRATCH_DIR "/network-scripts/", testfile, - NULL, &error); nmtst_assert_success (success, error); keyfile = utils_get_keys_path (testfile); @@ -6244,7 +6243,6 @@ test_write_wifi_wpa_then_open (void) success = writer_update_connection (connection, TEST_SCRATCH_DIR "/network-scripts/", testfile, - keyfile, &error); g_assert_no_error (error); g_assert (success); @@ -6392,7 +6390,6 @@ test_write_wifi_wpa_then_wep_with_perms (void) success = writer_update_connection (connection, TEST_SCRATCH_DIR "/network-scripts/", testfile, - keyfile, &error); g_assert_no_error (error); g_assert (success);