X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/952f4277280975bada5ab5019728449d41a80a1b..21f0f3a2fa7d075a8980410d4231bae295e449f5:/src/common/evtloopcmn.cpp diff --git a/src/common/evtloopcmn.cpp b/src/common/evtloopcmn.cpp index 808e82c972..18f9967c57 100644 --- a/src/common/evtloopcmn.cpp +++ b/src/common/evtloopcmn.cpp @@ -28,7 +28,6 @@ #ifndef WX_PRECOMP #include "wx/app.h" - #include "wx/stopwatch.h" // for wxMilliClock_t #endif //WX_PRECOMP // ---------------------------------------------------------------------------- @@ -155,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 -