summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-07-12 11:18:14 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-07-12 17:01:18 +0200
commit7884de47a5ffb43bcfc418828de50547d5b5901c (patch)
treec21665245000404a1b263bdd428e19b227a65dcd /basic
parent6a7ba51092e60f576ed946d12d6193b52c29b4b2 (diff)
callcatcher: remove unused StarBASIC::StaticSuppressSfxResource
Diffstat (limited to 'basic')
-rw-r--r--basic/inc/basic/sbstar.hxx3
-rw-r--r--basic/source/classes/sb.cxx18
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