From: Vadim Zeitlin Date: Wed, 9 Jul 2003 22:46:06 +0000 (+0000) Subject: we probably don't need crit section in GetTimeZone() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7b4fee49300c44b2f387c56f4cee9ac3e9b87fb9 we probably don't need crit section in GetTimeZone() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 6751dd2ad9..6c87ccc236 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -222,16 +222,6 @@ const wxDateTime wxDefaultDateTime; wxDateTime::Country wxDateTime::ms_country = wxDateTime::Country_Unknown; -// ---------------------------------------------------------------------------- -// private globals -// ---------------------------------------------------------------------------- - -// a critical section is needed to protect GetTimeZone() static -// variable in MT case -#if wxUSE_THREADS - static wxCriticalSection gs_critsectTimezone; -#endif // wxUSE_THREADS - // ---------------------------------------------------------------------------- // private functions // ---------------------------------------------------------------------------- @@ -273,8 +263,6 @@ static int GetTimeZone() static long gmtoffset = LONG_MAX; // invalid timezone #endif - wxCRIT_SECT_LOCKER(lock, gs_critsectTimezone); - // ensure that the timezone variable is set by calling localtime if ( !s_timezoneSet ) {