diff options
author | Thomas Haller <thaller@redhat.com> | 2021-06-17 23:13:09 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-06-23 12:13:39 +0200 |
commit | 4065158491ca4e5e2b419e0d34650a6cf6802a91 (patch) | |
tree | 617a3a268c96813b91310d11890f9965467fd592 /src | |
parent | 21638c54b0ab811eddd22fcb565fc988e19fad4e (diff) |
libnm: drop unused parameter "ignored_default" from property_to_dbus()
Diffstat (limited to 'src')
-rw-r--r-- | src/libnm-core-impl/nm-setting.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libnm-core-impl/nm-setting.c b/src/libnm-core-impl/nm-setting.c index ee65f0f0e0..31c5030ce0 100644 --- a/src/libnm-core-impl/nm-setting.c +++ b/src/libnm-core-impl/nm-setting.c @@ -559,8 +559,7 @@ property_to_dbus(const NMSettInfoSetting * sett_info, NMSetting * setting, NMConnectionSerializationFlags flags, const NMConnectionSerializationOptions *options, - gboolean ignore_flags, - gboolean ignore_default) + gboolean ignore_flags) { const NMSettInfoProperty *property = &sett_info->property_infos[property_idx]; GVariant * variant; @@ -614,7 +613,7 @@ property_to_dbus(const NMSettInfoSetting * sett_info, g_object_get_property(G_OBJECT(setting), property->param_spec->name, &prop_value); - if (ignore_default && g_param_value_defaults(property->param_spec, &prop_value)) + if (g_param_value_defaults(property->param_spec, &prop_value)) return NULL; if (property->property_type->gprop_to_dbus_fcn) { @@ -710,8 +709,7 @@ _nm_setting_to_dbus(NMSetting * setting, for (i = 0; i < sett_info->property_infos_len; i++) { gs_unref_variant GVariant *dbus_value = NULL; - dbus_value = - property_to_dbus(sett_info, i, connection, setting, flags, options, FALSE, TRUE); + dbus_value = property_to_dbus(sett_info, i, connection, setting, flags, options, FALSE); if (dbus_value) { g_variant_builder_add(&builder, "{sv}", sett_info->property_infos[i].name, dbus_value); } @@ -1347,7 +1345,6 @@ compare_property(const NMSettInfoSetting *sett_info, set_a, NM_CONNECTION_SERIALIZE_ALL, NULL, - TRUE, TRUE); value2 = property_to_dbus(sett_info, property_idx, @@ -1355,7 +1352,6 @@ compare_property(const NMSettInfoSetting *sett_info, set_b, NM_CONNECTION_SERIALIZE_ALL, NULL, - TRUE, TRUE); if (nm_property_compare(value1, value2) != 0) return NM_TERNARY_FALSE; |