From: Vadim Zeitlin Date: Sun, 12 Jul 2009 17:10:30 +0000 (+0000) Subject: Removed another occurrence of previous log critical section (should have been X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/24723aa565bcfd97df04c36f40f04b84054d7474 Removed another occurrence of previous log critical section (should have been part of r61417). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/log.cpp b/src/common/log.cpp index f72beb9af9..09b89aaa30 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -100,13 +100,6 @@ inline wxCriticalSection& GetTraceMaskCS() return s_csTrace; } -inline wxCriticalSection& GetPreviousLogCS() -{ - static wxCriticalSection s_csPrev; - - return s_csPrev; -} - inline wxCriticalSection& GetLevelsCS() { static wxCriticalSection s_csLevels; @@ -294,8 +287,6 @@ wxLog::OnLogInMainThread(wxLogLevel level, { if ( GetRepetitionCounting() ) { - wxCRIT_SECT_LOCKER(lock, GetPreviousLogCS()); - if ( msg == gs_prevLog.msg ) { gs_prevLog.numRepeated++;