aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-23 01:53:38 -0500
committerMike Frysinger <vapier@gentoo.org>2012-12-24 00:19:24 -0500
commit5aee0f89c31cbf64a605bdb8783fa7a74b900989 (patch)
tree555b8e7db9f7fde0492986a2a736ebc3489dc4b4
parenttests: disable tostop on controlling terminal (diff)
downloadsandbox-5aee0f89c31cbf64a605bdb8783fa7a74b900989.tar.gz
sandbox-5aee0f89c31cbf64a605bdb8783fa7a74b900989.tar.bz2
sandbox-5aee0f89c31cbf64a605bdb8783fa7a74b900989.zip
sb_efunc: delete
Completely unused. GOOD BYE. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--libsbutil/sb_efuncs.c25
1 files changed, 0 insertions, 25 deletions
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",