diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-07-12 11:05:18 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-07-12 17:01:17 +0200 |
commit | 04c025a3fd3aaaf048f456d0f348199519af15ab (patch) | |
tree | 658c056c160fdf62871414372d10436c5e0a4e7a /basic | |
parent | 0712e5233c1e6c452f5c888351870047673f0da6 (diff) |
callcatcher: remove unused StarBASIC::ActivateObject
Diffstat (limited to 'basic')
-rw-r--r-- | basic/inc/basic/sbstar.hxx | 1 | ||||
-rw-r--r-- | basic/source/classes/sb.cxx | 34 |
2 files changed, 0 insertions, 35 deletions
diff --git a/basic/inc/basic/sbstar.hxx b/basic/inc/basic/sbstar.hxx index 73d80a4345b7..5665bd33c615 100644 --- a/basic/inc/basic/sbstar.hxx +++ b/basic/inc/basic/sbstar.hxx @@ -148,7 +148,6 @@ public: void InitAllModules( StarBASIC* pBasicNotToInit = NULL ); void DeInitAllModules( void ); void ClearAllModuleVars( void ); - void ActivateObject( const String*, sal_Bool ); sal_Bool LoadOldModules( SvStream& ); // #43011 For TestTool; deletes global vars diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 221286e91142..c4535eb63fc7 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1434,40 +1434,6 @@ sal_Bool StarBASIC::IsRunning() /************************************************************************** * -* Object factories and others -* -**************************************************************************/ - -// Activation of an object. There is no need to access active objects -// with name via BASIC. If NULL is given, everything is activated. -void StarBASIC::ActivateObject( const String* pName, sal_Bool bActivate ) -{ - if( pName ) - { - SbxObject* p = (SbxObject*) SbxObject::Find( *pName, SbxCLASS_OBJECT ); - if( p ) - { - if( bActivate ) - p->SetFlag( SBX_EXTSEARCH ); - else - p->ResetFlag( SBX_EXTSEARCH ); - } - } - else - { - for( sal_uInt16 i = 0; i < GetObjects()->Count(); i++ ) - { - SbxObject* p = (SbxObject*) GetObjects()->Get( i ); - if( bActivate ) - p->SetFlag( SBX_EXTSEARCH ); - else - p->ResetFlag( SBX_EXTSEARCH ); - } - } -} - -/************************************************************************** -* * Debugging and error handling * **************************************************************************/ |