diff options
author | Thomas Haller <thaller@redhat.com> | 2020-05-14 21:28:09 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-05-20 21:27:16 +0200 |
commit | fad03fd489ace19cc1dd34dbc5452d1f16b06cd2 (patch) | |
tree | 9c6b648805c6ecec618b6131eb7719de7de5a4ff | |
parent | accafccb1854c0153cd92ce8fe57261cd37cd3b5 (diff) | |
download | NetworkManager-fad03fd489ace19cc1dd34dbc5452d1f16b06cd2.tar.gz |
libnm: drop unused internal function nm_setting_gendata_get_all_values()
This function is not used nor does it seem useful.
Either you only need the names (nm_setting_gendata_get_all_names())
or you need the names and values together (_nm_setting_gendata_get_all()).
Getting the values without knowing the corresponding name makes
little sense. If you need it, call _nm_setting_gendata_get_all()
instead.
-rw-r--r-- | libnm-core/nm-core-internal.h | 2 | ||||
-rw-r--r-- | libnm-core/nm-setting.c | 27 |
2 files changed, 0 insertions, 29 deletions
diff --git a/libnm-core/nm-core-internal.h b/libnm-core/nm-core-internal.h index cc37e68df0..9a7f74db5a 100644 --- a/libnm-core/nm-core-internal.h +++ b/libnm-core/nm-core-internal.h @@ -334,8 +334,6 @@ GVariant *nm_setting_gendata_get (NMSetting *setting, const char *const*nm_setting_gendata_get_all_names (NMSetting *setting, guint *out_len); -GVariant *const*nm_setting_gendata_get_all_values (NMSetting *setting); - gboolean nm_setting_gendata_clear (NMSetting *setting, const char *optname); diff --git a/libnm-core/nm-setting.c b/libnm-core/nm-setting.c index 50a277d8b8..c215b5cb58 100644 --- a/libnm-core/nm-setting.c +++ b/libnm-core/nm-setting.c @@ -2524,33 +2524,6 @@ nm_setting_gendata_get_all_names (NMSetting *setting, return names; } -/** - * nm_setting_gendata_get_all_values: - * @setting: the #NMSetting - * - * Gives the number of generic data elements and optionally returns all their - * key names and values. This API is low level access and unless you know what you - * are doing, it might not be what you want. - * - * Returns: (array zero-terminated=1) (transfer none): - * A %NULL terminated array of #GVariant. If no data is present, this returns - * %NULL. The returned array and the variants are owned by %NMSetting and might be invalidated - * soon. The sort order of nm_setting_gendata_get_all_names() and nm_setting_gendata_get_all_values() - * is consistent. That means, the nth value has the nth name returned by nm_setting_gendata_get_all_names(). - * - * Since: 1.14 - **/ -GVariant *const* -nm_setting_gendata_get_all_values (NMSetting *setting) -{ - GVariant *const*values; - - g_return_val_if_fail (NM_IS_SETTING (setting), NULL); - - _nm_setting_gendata_get_all (setting, NULL, &values); - return values; -} - void _nm_setting_gendata_to_gvalue (NMSetting *setting, GValue *value) |