diff mbox series

parse-options: drop unused parse_opt_ctx_t member

Message ID ebcaa9e1-d306-4c93-adec-3f35d7040531@web.de (mailing list archive)
State New, archived
Headers show
Series parse-options: drop unused parse_opt_ctx_t member | expand

Commit Message

René Scharfe Oct. 3, 2023, 8:55 a.m. UTC
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(-)

--
2.42.0

Comments

Eric Sunshine Oct. 3, 2023, 5:38 p.m. UTC | #1
On Tue, Oct 3, 2023 at 4:55 AM René Scharfe <l.s.r@web.de> wrote:
> 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.
René Scharfe Oct. 3, 2023, 6 p.m. UTC | #2
Am 03.10.23 um 19:38 schrieb Eric Sunshine:
> On Tue, Oct 3, 2023 at 4:55 AM René Scharfe <l.s.r@web.de> wrote:
>> 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:

Signed-off-by: René Scharfe <l.s.r@web.de>
diff mbox series

Patch

diff --git a/parse-options.h b/parse-options.h
index 57a7fe9d91..4a66ec3bf5 100644
--- a/parse-options.h
+++ b/parse-options.h
@@ -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,