Blame SOURCES/0012-libsepol-cil-Remove-unused-field-from-struct-cil_arg.patch

060220
From 628f0f60995c2ed6d2de72bda34e6a62668be74b Mon Sep 17 00:00:00 2001
060220
From: James Carter <jwcart2@gmail.com>
060220
Date: Mon, 16 Nov 2020 17:06:59 -0500
060220
Subject: [PATCH] libsepol/cil: Remove unused field from struct
060220
 cil_args_resolve
060220
060220
When resolving names, the struct cil_args_resolve is passed to the
060220
various resolve functions. The field last_resolved_name is not used.
060220
060220
Remove the last_resolved_name field from struct cil_args_resolve.
060220
060220
Signed-off-by: James Carter <jwcart2@gmail.com>
060220
---
060220
 libsepol/cil/src/cil_resolve_ast.c | 4 ----
060220
 1 file changed, 4 deletions(-)
060220
060220
diff --git a/libsepol/cil/src/cil_resolve_ast.c b/libsepol/cil/src/cil_resolve_ast.c
060220
index ea08087d..ed876260 100644
060220
--- a/libsepol/cil/src/cil_resolve_ast.c
060220
+++ b/libsepol/cil/src/cil_resolve_ast.c
060220
@@ -51,7 +51,6 @@ struct cil_args_resolve {
060220
 	struct cil_db *db;
060220
 	enum cil_pass pass;
060220
 	uint32_t *changed;
060220
-	char *last_resolved_name;
060220
 	struct cil_tree_node *optstack;
060220
 	struct cil_tree_node *boolif;
060220
 	struct cil_tree_node *macro;
060220
@@ -3907,7 +3906,6 @@ int cil_resolve_ast(struct cil_db *db, struct cil_tree_node *current)
060220
 	extra_args.db = db;
060220
 	extra_args.pass = pass;
060220
 	extra_args.changed = &changed;
060220
-	extra_args.last_resolved_name = NULL;
060220
 	extra_args.optstack = NULL;
060220
 	extra_args.boolif= NULL;
060220
 	extra_args.macro = NULL;
060220
@@ -4236,7 +4234,5 @@ exit:
060220
 		*datum = NULL;
060220
 	}
060220
 
060220
-	args->last_resolved_name = name;
060220
-
060220
 	return rc;
060220
 }
060220
-- 
060220
2.30.2
060220