diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-03 11:08:31 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-03-04 11:34:07 +0000 |
commit | 5b04c9063cc9dd77dc55c361df081812af38cdbd (patch) | |
tree | 827cd9405e68df853362ac6a021c4619bf4a6bc3 /basic | |
parent | bf48090e0a81c6490ee938eabaef4e791df85229 (diff) |
remove unused and commented out code
This code gets never called.
Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
Diffstat (limited to 'basic')
-rw-r--r-- | basic/inc/basic/sbmod.hxx | 5 | ||||
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 27 |
2 files changed, 0 insertions, 32 deletions
diff --git a/basic/inc/basic/sbmod.hxx b/basic/inc/basic/sbmod.hxx index 1ff5b11c9b8b..f94e2c9e8a36 100644 --- a/basic/inc/basic/sbmod.hxx +++ b/basic/inc/basic/sbmod.hxx @@ -110,16 +110,11 @@ public: const SbxObject* FindType( OUString aTypeName ) const; virtual sal_Bool IsBreakable( sal_uInt16 nLine ) const; - virtual size_t GetBPCount() const; - virtual sal_uInt16 GetBP( size_t n ) const; virtual sal_Bool IsBP( sal_uInt16 nLine ) const; virtual sal_Bool SetBP( sal_uInt16 nLine ); virtual sal_Bool ClearBP( sal_uInt16 nLine ); virtual void ClearAllBP(); - // Lines of Subs - virtual SbMethod* GetFunctionForLine( sal_uInt16 ); - // Store only image, no source (needed for new password protection) sal_Bool StoreBinaryData( SvStream& ); sal_Bool StoreBinaryData( SvStream&, sal_uInt16 nVer ); diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 4b4472ea01e6..b612ee28d212 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -982,20 +982,6 @@ void SbModule::SetSource32( const OUString& r ) EndDefinitions( sal_True ); } -SbMethod* SbModule::GetFunctionForLine( sal_uInt16 nLine ) -{ - for( sal_uInt16 i = 0; i < pMethods->Count(); i++ ) - { - SbMethod* p = (SbMethod*) pMethods->Get( i ); - if( p->GetSbxId() == SBXID_BASICMETHOD ) - { - if( nLine >= p->nLine1 && nLine <= p->nLine2 ) - return p; - } - } - return NULL; -} - // Broadcast of a hint to all Basics static void _SendHint( SbxObject* pObj, sal_uIntPtr nId, SbMethod* p ) @@ -1589,19 +1575,6 @@ sal_Bool SbModule::IsBreakable( sal_uInt16 nLine ) const return sal_False; } -size_t SbModule::GetBPCount() const -{ - return pBreaks ? pBreaks->size() : 0; -} - -sal_uInt16 SbModule::GetBP( size_t n ) const -{ - if( pBreaks && n < pBreaks->size() ) - return pBreaks->operator[]( n ); - else - return 0; -} - sal_Bool SbModule::IsBP( sal_uInt16 nLine ) const { if( pBreaks ) |