summaryrefslogtreecommitdiff
path: root/basic/source/runtime/runtime.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-07-12 11:10:42 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-07-12 17:01:18 +0200
commit6a7ba51092e60f576ed946d12d6193b52c29b4b2 (patch)
treef17bcb3f05aa02a9c512fabcbfa6bea2d126e0bf /basic/source/runtime/runtime.cxx
parente64de798883a70fa1171850008f60cc72578e2fd (diff)
callcatcher: remove unused StarBASIC::StaticEnableReschedule
Diffstat (limited to 'basic/source/runtime/runtime.cxx')
-rw-r--r--basic/source/runtime/runtime.cxx11
1 files changed, 2 insertions, 9 deletions
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();
}