]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/app.cpp
Added wxSingleInstanceChecker for OS/2 (patch #10491).
[wxWidgets.git] / src / motif / app.cpp
index 6208995cd0df97d15d4c513b36dde0c6349f4555..0a073548e787f54b933a7c197e97d2be88003fd3 100644 (file)
@@ -468,31 +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;
-
-    while (wxTheApp && wxTheApp->Pending())
-        wxTheApp->Dispatch();
-
-    s_inYield = false;
-
-    return true;
-}
 
 // ----------------------------------------------------------------------------
 // accessors for C modules