When resolving names, the struct cil_args_resolve is passed to the various resolve functions. The field last_resolved_name is not used. Remove the last_resolved_name field from struct cil_args_resolve. Signed-off-by: James Carter <jwcart2@xxxxxxxxx> --- libsepol/cil/src/cil_resolve_ast.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libsepol/cil/src/cil_resolve_ast.c b/libsepol/cil/src/cil_resolve_ast.c index daf873be..410b8c87 100644 --- a/libsepol/cil/src/cil_resolve_ast.c +++ b/libsepol/cil/src/cil_resolve_ast.c @@ -51,7 +51,6 @@ struct cil_args_resolve { struct cil_db *db; enum cil_pass pass; uint32_t *changed; - char *last_resolved_name; struct cil_tree_node *optstack; struct cil_tree_node *boolif; struct cil_tree_node *macro; @@ -3905,7 +3904,6 @@ int cil_resolve_ast(struct cil_db *db, struct cil_tree_node *current) extra_args.db = db; extra_args.pass = pass; extra_args.changed = &changed; - extra_args.last_resolved_name = NULL; extra_args.optstack = NULL; extra_args.boolif= NULL; extra_args.macro = NULL; @@ -4234,7 +4232,5 @@ exit: *datum = NULL; } - args->last_resolved_name = name; - return rc; } -- 2.25.4