X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9af42efda6c78093872a67180d43d5eeba261fee..a830dc4832c351b0e13d444a12bcc415678e2559:/src/common/evtloopcmn.cpp diff --git a/src/common/evtloopcmn.cpp b/src/common/evtloopcmn.cpp index 997718b44a..18f9967c57 100644 --- a/src/common/evtloopcmn.cpp +++ b/src/common/evtloopcmn.cpp @@ -154,22 +154,3 @@ void wxEventLoopManual::Exit(int rc) #endif // __WXMSW__ || __WXMAC__ || __WXDFB__ -#ifdef wxNEEDS_GENERIC_DISPATCH_TIMEOUT - -int wxGUIEventLoop::DispatchTimeout(unsigned long timeout) -{ - // TODO: this is, of course, horribly inefficient and a proper wait with - // timeout should be implemented for all ports natively... - const wxMilliClock_t timeEnd = wxGetLocalTimeMillis() + timeout; - for ( ;; ) - { - if ( Pending() ) - return Dispatch(); - - if ( wxGetLocalTimeMillis() >= timeEnd ) - return -1; - } -} - -#endif // wxNEEDS_GENERIC_DISPATCH_TIMEOUT -