From 6a7ba51092e60f576ed946d12d6193b52c29b4b2 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 12 Jul 2011 11:10:42 +0200 Subject: callcatcher: remove unused StarBASIC::StaticEnableReschedule --- basic/source/runtime/runtime.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'basic/source/runtime/runtime.cxx') diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index 8e6299b6203f..ba03bdac939e 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -61,13 +61,6 @@ bool SbiRuntime::isVBAEnabled() return result; } -// #91147 Global reschedule flag -static sal_Bool bStaticGlobalEnableReschedule = sal_True; - -void StarBASIC::StaticEnableReschedule( sal_Bool bReschedule ) -{ - bStaticGlobalEnableReschedule = bReschedule; -} void StarBASIC::SetVBAEnabled( sal_Bool bEnabled ) { if ( bDocBasic ) @@ -715,7 +708,7 @@ sal_Bool SbiRuntime::Step() if( bRun ) { // Unbedingt gelegentlich die Kontrolle abgeben! - if( !( ++nOps & 0xF ) && pInst->IsReschedule() && bStaticGlobalEnableReschedule ) + if( !( ++nOps & 0xF ) && pInst->IsReschedule() ) { sal_uInt32 nTime = osl_getGlobalTimer(); if (nTime - m_nLastTime > 5 ) // 20 ms @@ -728,7 +721,7 @@ sal_Bool SbiRuntime::Step() // #i48868 blocked by next call level? while( bBlocked ) { - if( pInst->IsReschedule() && bStaticGlobalEnableReschedule ) + if( pInst->IsReschedule() ) Application::Reschedule(); } -- cgit