X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f212e222e736f9f24d86edb5717508a159c38692..1f226ad8a70e32951c684de7555b3e1ce6f1153c:/src/motif/app.cpp diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 5807769612..0a073548e7 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -468,32 +468,6 @@ void wxApp::SetTopLevelRealizedWidget(WXDisplay* display, WXWidget widget) .m_topLevelRealizedWidget = (Widget)widget; } -// Yield to other processes - -bool wxApp::Yield(bool onlyIfNeeded) -{ - static bool s_inYield = false; - - if ( s_inYield ) - { - if ( !onlyIfNeeded ) - { - wxFAIL_MSG( wxT("wxYield called recursively" ) ); - } - - return false; - } - - s_inYield = true; - - wxEventLoopGuarantor dummyLoopIfNeeded; - while (wxTheApp && wxTheApp->Pending()) - wxTheApp->Dispatch(); - - s_inYield = false; - - return true; -} // ---------------------------------------------------------------------------- // accessors for C modules