cli: remove unused argument from nm_meta_selection_create_parse_list()

This commit is contained in:
Thomas Haller
2018-06-08 17:02:10 +02:00
parent 223247f136
commit 982c74abd7
4 changed files with 3 additions and 6 deletions

View File

@@ -1965,7 +1965,6 @@ do_connections_show (NmCli *nmc, int argc, char **argv)
* a profile has multiple active connections, it will be listed multiple times.
* If that's not the case, we filter out these duplicate lines. */
selection = nm_meta_selection_create_parse_list ((const NMMetaAbstractInfo *const*) metagen_con_show,
NULL,
fields_str,
FALSE,
NULL);

View File

@@ -801,7 +801,7 @@ _output_selection_parse (const NMMetaAbstractInfo *const*fields,
gs_unref_array GArray *cols = NULL;
guint i;
selection = nm_meta_selection_create_parse_list (fields, NULL, fields_str, FALSE, error);
selection = nm_meta_selection_create_parse_list (fields, fields_str, FALSE, error);
if (!selection)
return FALSE;
@@ -868,7 +868,7 @@ parse_output_fields (const char *fields_str,
g_return_val_if_fail (!error || !*error, NULL);
g_return_val_if_fail (!out_group_fields || !*out_group_fields, NULL);
selection = nm_meta_selection_create_parse_list (fields_array, NULL, fields_str, TRUE, error);
selection = nm_meta_selection_create_parse_list (fields_array, fields_str, TRUE, error);
if (!selection)
return NULL;

View File

@@ -598,7 +598,6 @@ nm_meta_selection_create_parse_one (const NMMetaAbstractInfo *const* fields_arra
NMMetaSelectionResultList *
nm_meta_selection_create_parse_list (const NMMetaAbstractInfo *const* fields_array,
const char *fields_prefix,
const char *fields_str, /* a comma separated list of selectors */
gboolean validate_nested,
GError **error)
@@ -625,7 +624,7 @@ nm_meta_selection_create_parse_list (const NMMetaAbstractInfo *const* fields_arr
if (!fields_str_cur[0])
continue;
if (!_output_selection_select_one (fields_array,
fields_prefix,
NULL,
fields_str_cur,
validate_nested,
&array,

View File

@@ -95,7 +95,6 @@ NMMetaSelectionResultList *nm_meta_selection_create_parse_one (const NMMetaAbstr
gboolean validate_nested,
GError **error);
NMMetaSelectionResultList *nm_meta_selection_create_parse_list (const NMMetaAbstractInfo *const* fields_array,
const char *fields_prefix,
const char *fields_str,
gboolean validate_nested,
GError **error);