cli: remove unused argument from nm_meta_selection_create_parse_list()
This commit is contained in:
@@ -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.
|
* a profile has multiple active connections, it will be listed multiple times.
|
||||||
* If that's not the case, we filter out these duplicate lines. */
|
* 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,
|
selection = nm_meta_selection_create_parse_list ((const NMMetaAbstractInfo *const*) metagen_con_show,
|
||||||
NULL,
|
|
||||||
fields_str,
|
fields_str,
|
||||||
FALSE,
|
FALSE,
|
||||||
NULL);
|
NULL);
|
||||||
|
@@ -801,7 +801,7 @@ _output_selection_parse (const NMMetaAbstractInfo *const*fields,
|
|||||||
gs_unref_array GArray *cols = NULL;
|
gs_unref_array GArray *cols = NULL;
|
||||||
guint i;
|
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)
|
if (!selection)
|
||||||
return FALSE;
|
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 (!error || !*error, NULL);
|
||||||
g_return_val_if_fail (!out_group_fields || !*out_group_fields, 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)
|
if (!selection)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
@@ -598,7 +598,6 @@ nm_meta_selection_create_parse_one (const NMMetaAbstractInfo *const* fields_arra
|
|||||||
|
|
||||||
NMMetaSelectionResultList *
|
NMMetaSelectionResultList *
|
||||||
nm_meta_selection_create_parse_list (const NMMetaAbstractInfo *const* fields_array,
|
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 */
|
const char *fields_str, /* a comma separated list of selectors */
|
||||||
gboolean validate_nested,
|
gboolean validate_nested,
|
||||||
GError **error)
|
GError **error)
|
||||||
@@ -625,7 +624,7 @@ nm_meta_selection_create_parse_list (const NMMetaAbstractInfo *const* fields_arr
|
|||||||
if (!fields_str_cur[0])
|
if (!fields_str_cur[0])
|
||||||
continue;
|
continue;
|
||||||
if (!_output_selection_select_one (fields_array,
|
if (!_output_selection_select_one (fields_array,
|
||||||
fields_prefix,
|
NULL,
|
||||||
fields_str_cur,
|
fields_str_cur,
|
||||||
validate_nested,
|
validate_nested,
|
||||||
&array,
|
&array,
|
||||||
|
@@ -95,7 +95,6 @@ NMMetaSelectionResultList *nm_meta_selection_create_parse_one (const NMMetaAbstr
|
|||||||
gboolean validate_nested,
|
gboolean validate_nested,
|
||||||
GError **error);
|
GError **error);
|
||||||
NMMetaSelectionResultList *nm_meta_selection_create_parse_list (const NMMetaAbstractInfo *const* fields_array,
|
NMMetaSelectionResultList *nm_meta_selection_create_parse_list (const NMMetaAbstractInfo *const* fields_array,
|
||||||
const char *fields_prefix,
|
|
||||||
const char *fields_str,
|
const char *fields_str,
|
||||||
gboolean validate_nested,
|
gboolean validate_nested,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
Reference in New Issue
Block a user