[Libreoffice-commits] .: desktop/source
Michael Meeks
mmeeks at kemper.freedesktop.org
Fri Oct 8 03:22:19 PDT 2010
desktop/source/app/dispatchwatcher.cxx | 17 -----------------
1 file changed, 17 deletions(-)
New commits:
commit 0288f98bd0705d66189efcc85a7b60186f4c7f59
Author: Michael Meeks <michael.meeks at novell.com>
Date: Fri Oct 8 11:21:02 2010 +0100
remove daft sleeps on start
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index e2a6429..99aa634 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -88,16 +88,6 @@ struct DispatchHolder
Reference< XDispatch > xDispatch;
};
-// Temporary code
-static void impl_sleep( sal_uInt32 nSec )
-{
- TimeValue aTime;
- aTime.Seconds = nSec;
- aTime.Nanosec = 0;
-
- osl::Thread::wait( aTime );
-}
-
static String impl_GetFilterFromExt( OUString aUrl, SfxFilterFlags nFlags,
String aAppl )
{
@@ -618,16 +608,9 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch
// implementation via statusChanged!!
if ( bEmpty && !bNoTerminate /*m_aRequestContainer.empty()*/ )
{
- // Delay give a chance for threads to complete work
- impl_sleep(2);
-
// We have to check if we have an open task otherwise we have to shutdown the office.
Reference< XFramesSupplier > xTasksSupplier( xDesktop, UNO_QUERY );
aGuard.clear();
-
- // Delay give a chance for threads to complete work
- impl_sleep(1);
-
Reference< XElementAccess > xList( xTasksSupplier->getFrames(), UNO_QUERY );
if ( !xList->hasElements() )
More information about the Libreoffice-commits
mailing list