From 6ba4d04b58b577b9d831024ff2bdb90079125bc8 Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 6 May 2024 15:41:54 -0400 Subject: [PATCH] cwLog.cpp : levelToLabel() is not implemented in terms of cw::idToLabel(). --- cwLog.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cwLog.cpp b/cwLog.cpp index bf494c0..3eb8297 100644 --- a/cwLog.cpp +++ b/cwLog.cpp @@ -164,13 +164,7 @@ void cw::log::setFormatCb( handle_t h, logFormatCbFunc_t fmtFunc, void* fmtCbArg const char* cw::log::levelToLabel( unsigned level ) -{ - const char* label; - if((label = idToLabel(logLevelLabelArray,level,kInvalid_LogLevel)) == nullptr) - label = ""; - - return label; -} +{ return idToLabel(logLevelLabelArray,level,kInvalid_LogLevel); }