parse_decoration_style: drop unused argument `var`

The previous commit left it unused. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Martin Ågren committed Aug 7, 2017 at 20:20 UTC f094b89a4d75216736830b5d2286ebc6846a25a9
1 file changed +3 -3
builtin/log.c
+3 -3
@@ -52,7 +52,7 @@ struct line_opt_callback_data {
52 struct string_list args;
53 };
54
55 -static int parse_decoration_style(const char *var, const char *value)
55 +static int parse_decoration_style(const char *value)
56 {
57 switch (git_parse_maybe_bool(value)) {
58 case 1:
@@ -76,7 +76,7 @@ static int decorate_callback(const struct option *opt, const char *arg, int unse
76 if (unset)
77 decoration_style = 0;
78 else if (arg)
79 - decoration_style = parse_decoration_style("command line", arg);
79 + decoration_style = parse_decoration_style(arg);
80 else
81 decoration_style = DECORATE_SHORT_REFS;
82
@@ -401,7 +401,7 @@ static int git_log_config(const char *var, const char *value, void *cb)
401 if (!strcmp(var, "log.date"))
402 return git_config_string(&default_date_mode, var, value);
403 if (!strcmp(var, "log.decorate")) {
404 - decoration_style = parse_decoration_style(var, value);
404 + decoration_style = parse_decoration_style(value);
405 if (decoration_style < 0)
406 decoration_style = 0; /* maybe warn? */
407 return 0;