From 20d1c6528c76242581e89c271679d35884d916dc Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Sun, 30 Mar 2014 15:08:23 +0400 Subject: parse-options: remove unused OPT_SET_PTR OPT_SET_PTR was never used since its creation at db7244bd (parse-options new features., 2007-11-07). Signed-off-by: Junio C Hamano --- parse-options.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'parse-options.c') diff --git a/parse-options.c b/parse-options.c index 7b8d3faa1..245bf3d6f 100644 --- a/parse-options.c +++ b/parse-options.c @@ -127,10 +127,6 @@ static int get_value(struct parse_opt_ctx_t *p, *(int *)opt->value = opt->defval; return 0; - case OPTION_SET_PTR: - *(void **)opt->value = unset ? NULL : (void *)opt->defval; - return 0; - case OPTION_STRING: if (unset) *(const char **)opt->value = NULL; @@ -370,7 +366,6 @@ static void parse_options_check(const struct option *opts) case OPTION_BIT: case OPTION_NEGBIT: case OPTION_SET_INT: - case OPTION_SET_PTR: case OPTION_NUMBER: if ((opts->flags & PARSE_OPT_OPTARG) || !(opts->flags & PARSE_OPT_NOARG)) -- cgit v1.2.1