From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 495B91381F3 for ; Mon, 24 Dec 2012 05:19:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C093CE0655; Mon, 24 Dec 2012 05:19:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 45EF6E0655 for ; Mon, 24 Dec 2012 05:19:30 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5C02533DA28 for ; Mon, 24 Dec 2012 05:19:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C8556E543C for ; Mon, 24 Dec 2012 05:19:26 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1356326364.5aee0f89c31cbf64a605bdb8783fa7a74b900989.vapier@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: libsbutil/ X-VCS-Repository: proj/sandbox X-VCS-Files: libsbutil/sb_efuncs.c X-VCS-Directories: libsbutil/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 5aee0f89c31cbf64a605bdb8783fa7a74b900989 X-VCS-Branch: master Date: Mon, 24 Dec 2012 05:19:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5f8f2d36-1e48-4571-9056-93d21ddc0577 X-Archives-Hash: 217174bbbcfc361a9dd63669b662bab8 commit: 5aee0f89c31cbf64a605bdb8783fa7a74b900989 Author: Mike Frysinger gentoo org> AuthorDate: Fri Nov 23 06:53:38 2012 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Dec 24 05:19:24 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commit;h=5aee0f89 sb_efunc: delete Completely unused. GOOD BYE. Signed-off-by: Mike Frysinger gentoo.org> --- libsbutil/sb_efuncs.c | 25 ------------------------- 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",