summaryrefslogtreecommitdiff
path: root/color.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-02-12 17:41:30 -0800
committerJunio C Hamano <gitster@pobox.com>2018-02-13 10:17:12 -0800
commit75e5e9c3f7f9615ae2ee38a839aafbbe642a735a (patch)
treec8c08c1f83c237daf0ed4d9f1c470f2eae145390 /color.c
parent8279ed033f703d4115bee620dccd32a9ec94d9aa (diff)
downloadgit-sb/color-h-cleanup.tar.gz
color.h: document and modernize headersb/color-h-cleanup
Add documentation explaining the functions in color.h. While at it, migrate the function `color_set` into grep.c, where the only callers are. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'color.c')
-rw-r--r--color.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/color.c b/color.c
index d48dd947c9..f277e72e4c 100644
--- a/color.c
+++ b/color.c
@@ -161,11 +161,6 @@ int color_parse(const char *value, char *dst)
return color_parse_mem(value, strlen(value), dst);
}
-void color_set(char *dst, const char *color_bytes)
-{
- xsnprintf(dst, COLOR_MAXLEN, "%s", color_bytes);
-}
-
/*
* Write the ANSI color codes for "c" to "out"; the string should
* already have the ANSI escape code in it. "out" should have enough
@@ -399,8 +394,6 @@ static int color_vfprintf(FILE *fp, const char *color, const char *fmt,
return r;
}
-
-
int color_fprintf(FILE *fp, const char *color, const char *fmt, ...)
{
va_list args;