Skip to contentSkip to conversation

parse-options: drop unused parse_opt_ctx_t member

PATCH In review René Scharfe 2 participants 3 messages Oct 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parse-options: drop unused parse_opt_ctx_t member

5c387428f1 (parse-options: don't emit "ambiguous option" for aliases, 2019-04-29) added "updated_options" to struct parse_opt_ctx_t, but it has never been used. Remove it.

---
 parse-options.h | 1 -
 1 file changed, 1 deletion(-)
parse-options.h +0 -1
index 57a7fe9d91..4a66ec3bf5 100644
@@ -459,7 +459,6 @@ struct parse_opt_ctx_t {
 	unsigned has_subcommands;
 	const char *prefix;
 	const char **alias_groups; /* must be in groups of 3 elements! */
-	struct option *updated_options;
 };
 
 void parse_options_start(struct parse_opt_ctx_t *ctx,

--
2.42.0

#1 lore raw
Quoted 4 lines · René Scharfe

5c387428f1 (parse-options: don't emit "ambiguous option" for aliases, 2019-04-29) added "updated_options" to struct parse_opt_ctx_t, but it has never been used. Remove it.
---

Missing sign-off.

#2 lore raw

Am 03.10.23 um 19:38 schrieb Eric Sunshine:

Quoted 7 lines · René Scharfe
Quoted 4 lines

5c387428f1 (parse-options: don't emit "ambiguous option" for aliases, 2019-04-29) added "updated_options" to struct parse_opt_ctx_t, but it has never been used. Remove it.
---

Missing sign-off.

Oops, thanks for catching that. Technically not necessary, I guess, since the patch is trivial, but here it is: