From 5f7f58728c2f723338d18f5b80beb6e3c8c27c93 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Thu, 16 Oct 2008 17:57:48 +0000 Subject: Remove syslog-specific code from portable part of logging; was already placed in posix-specific part. Resolves QPID-1361 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@705292 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/log/Statement.cpp | 10 ---------- cpp/src/qpid/log/Statement.h | 3 --- 2 files changed, 13 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/log/Statement.cpp b/cpp/src/qpid/log/Statement.cpp index c2b286f1e7..090a993e78 100644 --- a/cpp/src/qpid/log/Statement.cpp +++ b/cpp/src/qpid/log/Statement.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #include namespace qpid { @@ -67,11 +66,6 @@ const char* names[LevelTraits::COUNT] = { "trace", "debug", "info", "notice", "warning", "error", "critical" }; -int priorities[LevelTraits::COUNT] = { - LOG_DEBUG, LOG_DEBUG, LOG_INFO, LOG_NOTICE, - LOG_WARNING, LOG_ERR, LOG_CRIT -}; - } // namespace Level LevelTraits::level(const char* name) { @@ -86,8 +80,4 @@ const char* LevelTraits::name(Level l) { return names[l]; } -int LevelTraits::priority(Level l) { - return priorities[l]; -} - }} // namespace qpid::log diff --git a/cpp/src/qpid/log/Statement.h b/cpp/src/qpid/log/Statement.h index f765df1cf4..23a6fe1e54 100644 --- a/cpp/src/qpid/log/Statement.h +++ b/cpp/src/qpid/log/Statement.h @@ -53,9 +53,6 @@ struct LevelTraits { /** String name of level */ static const char* name(Level); - - /** Syslog priority of level */ - static int priority(Level); }; /** POD struct representing a logging statement in source code. */ -- cgit v1.2.1