From 5aee0f89c31cbf64a605bdb8783fa7a74b900989 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 23 Nov 2012 01:53:38 -0500 Subject: sb_efunc: delete Completely unused. GOOD BYE. Signed-off-by: Mike Frysinger --- libsbutil/sb_efuncs.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'libsbutil') diff --git a/libsbutil/sb_efuncs.c b/libsbutil/sb_efuncs.c index 5a86d25..6a7a09b 100644 --- a/libsbutil/sb_efuncs.c +++ b/libsbutil/sb_efuncs.c @@ -10,31 +10,6 @@ #include "headers.h" #include "sbutil.h" -static bool nocolor, init_color = false; -void sb_efunc(const char *color, const char *hilight, const char *format, ...) -{ - save_errno(); - - int fd = STDERR_FILENO; - - if (!init_color) { - nocolor = is_env_on(ENV_NOCOLOR); - init_color = true; - } - - if (!nocolor) - sb_fdprintf(fd, "%s%s%s", color, hilight, COLOR_NORMAL); - else - sb_fdprintf(fd, "%s", hilight); - - va_list args; - va_start(args, format); - sb_vfdprintf(fd, format, args); - va_end(args); - - restore_errno(); -} - const char *colors[] = { "\033[0m", "\033[32;01m", -- cgit v1.2.3-65-gdbad