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

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