From b369f4305cdff3e44f1967a0bbe07dda51af76a8 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 19 Apr 2022 10:13:40 +0200 Subject: [PATCH] removed obsolete mutex --- src/log.cpp | 4 ---- src/log.h | 3 --- 2 files changed, 0 insertions(+), 7 deletions(-) diff --git a/src/log.cpp b/src/log.cpp index 74bdf17..f0a0ce9 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -63,8 +63,6 @@ std::string Log::s_fileName = std::string(); LogLevel Log::s_logLevel = LogLevel::Error; LogMask Log::s_logMask = LogMask::None; -std::mutex Log::m_mutex = std::mutex(); - void Log::init( const std::string& context, const std::string& logFile, LogLevel logDepth ) { s_logLevel = logDepth; @@ -129,8 +127,6 @@ std::string Log::fileinfoMessage( const char* file, int line, const std::string& void Log::log( const std::string &category, const std::string &message, LogLevel level ) { - std::lock_guard lock(m_mutex); - std::string logCategory = category; std::string logMessage = message; if( logMessage.empty() ) diff --git a/src/log.h b/src/log.h index 897fe55..16b2b7e 100644 --- a/src/log.h +++ b/src/log.h @@ -317,9 +317,6 @@ private: //! The mask static LogMask s_logMask; - - //! Mutex to keep the logger thread-safe - static std::mutex m_mutex; }; } // End namespace log -- libgit2 0.21.4