From 97eeeea2dc069a1fcb03db99ef3810ebe3056188 Mon Sep 17 00:00:00 2001 From: Glen Choo Date: Wed, 28 Jun 2023 19:26:20 +0000 Subject: config: inline git_color_default_config git_color_default_config() is a shorthand for calling two other config callbacks. There are no other non-static functions that do this and it will complicate our refactoring of config_fn_t so inline it instead. Signed-off-by: Glen Choo Signed-off-by: Junio C Hamano --- color.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'color.c') diff --git a/color.c b/color.c index 83abb11eda..b24b19566b 100644 --- a/color.c +++ b/color.c @@ -430,14 +430,6 @@ int git_color_config(const char *var, const char *value, void *cb UNUSED) return 0; } -int git_color_default_config(const char *var, const char *value, void *cb) -{ - if (git_color_config(var, value, cb) < 0) - return -1; - - return git_default_config(var, value, cb); -} - void color_print_strbuf(FILE *fp, const char *color, const struct strbuf *sb) { if (*color) -- cgit v1.2.3