]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed another occurrence of previous log critical section (should have been
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Jul 2009 17:10:30 +0000 (17:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Jul 2009 17:10:30 +0000 (17:10 +0000)
part of r61417).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/log.cpp

index f72beb9af9e4d5005594d5faa034f7519abcbb53..09b89aaa30fa754ef2dd7c2ecdf22470e85ab7b2 100644 (file)
@@ -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++;