summaryrefslogtreecommitdiff
path: root/parse-options.c
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2014-03-30 15:08:23 +0400
committerJunio C Hamano <gitster@pobox.com>2014-03-31 13:01:19 -0700
commit20d1c6528c76242581e89c271679d35884d916dc (patch)
treef79c13d34079feef54f3f7cfdd86af2be7d610f6 /parse-options.c
parent9ff8ff310b71ab79ffb0ecaa004dec65cec31a45 (diff)
downloadgit-20d1c6528c76242581e89c271679d35884d916dc.tar.gz
parse-options: remove unused OPT_SET_PTRmr/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 <gitster@pobox.com>
Diffstat (limited to 'parse-options.c')
-rw-r--r--parse-options.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/parse-options.c b/parse-options.c
index 7b8d3faa17..245bf3d6f3 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))