diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-07-12 11:18:14 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-07-12 17:01:18 +0200 |
commit | 7884de47a5ffb43bcfc418828de50547d5b5901c (patch) | |
tree | c21665245000404a1b263bdd428e19b227a65dcd /basic | |
parent | 6a7ba51092e60f576ed946d12d6193b52c29b4b2 (diff) |
callcatcher: remove unused StarBASIC::StaticSuppressSfxResource
Diffstat (limited to 'basic')
-rw-r--r-- | basic/inc/basic/sbstar.hxx | 3 | ||||
-rw-r--r-- | basic/source/classes/sb.cxx | 18 |
2 files changed, 1 insertions, 20 deletions
diff --git a/basic/inc/basic/sbstar.hxx b/basic/inc/basic/sbstar.hxx index a33704c11887..5ac9aee34742 100644 --- a/basic/inc/basic/sbstar.hxx +++ b/basic/inc/basic/sbstar.hxx @@ -190,9 +190,6 @@ public: void SetVBAEnabled( sal_Bool bEnabled ); sal_Bool isVBAEnabled(); - // #60175 sal_True: SFX-Resource is not displayed on basic errors - static void StaticSuppressSfxResource( sal_Bool bSuppress ); - SbxObjectRef getRTL( void ) { return pRtl; } sal_Bool IsDocBasic() { return bDocBasic; } SbxVariable* VBAFind( const String& rName, SbxClassType t ); diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 56c5bdb71120..b598576294c6 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1601,31 +1601,15 @@ struct BasicStringList_Impl : private Resource }; //---------------------------------------------------------------- -// Flag, that prevent the activation of the SFX-Resources at a Basic error -static sal_Bool bStaticSuppressSfxResource = sal_False; - -void StarBASIC::StaticSuppressSfxResource( sal_Bool bSuppress ) -{ - bStaticSuppressSfxResource = bSuppress; -} - -// Hack for #83750, use bStaticSuppressSfxResource as setup flag sal_Bool runsInSetup( void ) { - return bStaticSuppressSfxResource; + return sal_False; } void StarBASIC::MakeErrorText( SbError nId, const String& aMsg ) { SolarMutexGuard aSolarGuard; - - if( bStaticSuppressSfxResource ) - { - GetSbData()->aErrMsg = String( RTL_CONSTASCII_USTRINGPARAM("No resource: Error message not available") ); - return; - } - sal_uInt16 nOldID = GetVBErrorCode( nId ); // intantiate the help class |