diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-07-12 11:10:42 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-07-12 17:01:18 +0200 |
commit | 6a7ba51092e60f576ed946d12d6193b52c29b4b2 (patch) | |
tree | f17bcb3f05aa02a9c512fabcbfa6bea2d126e0bf /basic | |
parent | e64de798883a70fa1171850008f60cc72578e2fd (diff) |
callcatcher: remove unused StarBASIC::StaticEnableReschedule
Diffstat (limited to 'basic')
-rw-r--r-- | basic/inc/basic/sbstar.hxx | 3 | ||||
-rw-r--r-- | basic/source/runtime/runtime.cxx | 11 |
2 files changed, 2 insertions, 12 deletions
diff --git a/basic/inc/basic/sbstar.hxx b/basic/inc/basic/sbstar.hxx index b3afb31bfc8a..a33704c11887 100644 --- a/basic/inc/basic/sbstar.hxx +++ b/basic/inc/basic/sbstar.hxx @@ -193,9 +193,6 @@ public: // #60175 sal_True: SFX-Resource is not displayed on basic errors static void StaticSuppressSfxResource( sal_Bool bSuppress ); - // #91147 sal_True: Reschedule is enabled (default>, sal_False: No reschedule - static void StaticEnableReschedule( sal_Bool bReschedule ); - SbxObjectRef getRTL( void ) { return pRtl; } sal_Bool IsDocBasic() { return bDocBasic; } SbxVariable* VBAFind( const String& rName, SbxClassType t ); 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(); } |