MXS-2014 Remove duplicate function

Two functions that essentially did the same thing, but had
slightly different name.
This commit is contained in:
Johan Wikman
2018-08-15 15:29:43 +03:00
parent b4912a942f
commit 52e6e10e28
2 changed files with 7 additions and 32 deletions

View File

@ -16,15 +16,13 @@
#include <sys/time.h>
#include <syslog.h>
#include <cerrno>
#include <cinttypes>
#include <cmath>
#include <cstring>
#include <string>
#include <mutex>
#include <unordered_map>
#include <maxbase/atomic.h>
#include <maxbase/error.h>
#include <maxbase/logger.hh>
#define CALCLEN(i) ((size_t)(floor(log10(abs((int64_t)i))) + 1))
@ -605,27 +603,6 @@ bool mxb_log_set_priority_enabled(int level, bool enable)
return rv;
}
bool mxb_log_is_priority_enabled(int level)
{
bool rv = false;
if ((level & ~LOG_PRIMASK) == 0)
{
int bit = (1 << level);
if (mxb_log_enabled_priorities & bit)
{
rv = true;
}
}
else
{
MXB_ERROR("Attempt to query unknown syslog priority %d.", level);
}
return rv;
}
typedef struct log_prefix
{
const char* text; // The prefix, e.g. "error: "