From: Roy Marples Date: Tue, 12 Aug 2008 10:50:30 +0000 (+0000) Subject: Remove unused function. X-Git-Tag: v4.0.2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c424cde17ae40da570bf94d156a642b1bda3186;p=thirdparty%2Fdhcpcd.git Remove unused function. --- diff --git a/logger.c b/logger.c index f312679a..15c6cf7b 100644 --- a/logger.c +++ b/logger.c @@ -38,31 +38,6 @@ static int loglevel = LOG_INFO; static char logprefix[12] = {0}; -struct logname { - int level; - const char *name; -}; -static const struct logname const lognames[] = { - { LOG_DEBUG, "debug" }, - { LOG_INFO, "info" }, - { LOG_WARNING, "warning" }, - { LOG_ERR, "error" }, - { -1, NULL } -}; - -int -logtolevel(const char *priority) -{ - const struct logname *lt; - - if (isdigit((unsigned char)*priority)) - return atoi(priority); - for (lt = lognames; lt->name; lt++) - if (!strcasecmp(priority, lt->name)) - return lt->level; - return -1; -} - void setloglevel(int level) { diff --git a/logger.h b/logger.h index cde4864d..8ac76b62 100644 --- a/logger.h +++ b/logger.h @@ -36,7 +36,6 @@ #include -int logtolevel(const char *); void setloglevel(int); void setlogprefix(const char *); void logger(int, const char *, ...) _PRINTF_LIKE (2, 3);