summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-09 11:45:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-12-09 13:57:16 +0000
commit87ec1f8857e77c0b8d559fa92416f44b68dd1e63 (patch)
treec6aca1bbfe5bbf8749a870c1a1cbc05399aa4a2e /basic/source
parent17d5cdfff9a2f8a311428b981a3998b8e33b4d82 (diff)
callcatcher: remove unused code post automation removal
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/classes/propacc.cxx71
-rw-r--r--basic/source/classes/sb.cxx21
-rw-r--r--basic/source/classes/sbxmod.cxx8
-rw-r--r--basic/source/comp/sbcomp.cxx12
-rw-r--r--basic/source/inc/propacc.hxx35
-rw-r--r--basic/source/sbx/sbxobj.cxx24
6 files changed, 0 insertions, 171 deletions
diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx
index edcef852050b..35789b21057c 100644
--- a/basic/source/classes/propacc.cxx
+++ b/basic/source/classes/propacc.cxx
@@ -260,12 +260,6 @@ sal_Bool PropertySetInfoImpl::hasPropertyByName(const ::rtl::OUString& Name) thr
}
-//============================================================================
-
-SbPropertySetInfo::SbPropertySetInfo()
-{
-}
-
//----------------------------------------------------------------------------
SbPropertySetInfo::SbPropertySetInfo( const SbPropertyValueArr_Impl &rPropVals )
@@ -307,71 +301,6 @@ sal_Bool SbPropertySetInfo::hasPropertyByName(const ::rtl::OUString& Name)
return aImpl.hasPropertyByName( Name );
}
-
-//----------------------------------------------------------------------------
-
-SbPropertyContainer::SbPropertyContainer()
-{
-}
-
-//----------------------------------------------------------------------------
-
-SbPropertyContainer::~SbPropertyContainer()
-{
-}
-
-//----------------------------------------------------------------------------
-void SbPropertyContainer::addProperty(const ::rtl::OUString& Name,
- sal_Int16 Attributes,
- const Any& DefaultValue)
- throw( PropertyExistException, IllegalTypeException,
- IllegalArgumentException, RuntimeException )
-{
- (void)Name;
- (void)Attributes;
- (void)DefaultValue;
-}
-
-//----------------------------------------------------------------------------
-void SbPropertyContainer::removeProperty(const ::rtl::OUString& Name)
- throw( UnknownPropertyException, RuntimeException )
-{
- (void)Name;
-}
-
-//----------------------------------------------------------------------------
-// XPropertySetInfo
-Sequence< Property > SbPropertyContainer::getProperties(void) throw ()
-{
- return aImpl.getProperties();
-}
-
-Property SbPropertyContainer::getPropertyByName(const ::rtl::OUString& Name)
- throw( RuntimeException )
-{
- return aImpl.getPropertyByName( Name );
-}
-
-sal_Bool SbPropertyContainer::hasPropertyByName(const ::rtl::OUString& Name)
- throw( RuntimeException )
-{
- return aImpl.hasPropertyByName( Name );
-}
-
-//----------------------------------------------------------------------------
-
-Sequence< PropertyValue > SbPropertyContainer::getPropertyValues(void)
-{
- return Sequence<PropertyValue>();
-}
-
-//----------------------------------------------------------------------------
-
-void SbPropertyContainer::setPropertyValues(const Sequence< PropertyValue >& PropertyValues_)
-{
- (void)PropertyValues_;
-}
-
//----------------------------------------------------------------------------
void RTL_Impl_CreatePropertySet( StarBASIC* pBasic, SbxArray& rPar, sal_Bool bWrite )
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index ce37b301b5cb..0256f885d61e 100644
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -1127,14 +1127,6 @@ sal_Bool StarBASIC::Compile( SbModule* pMod )
return pMod ? pMod->Compile() : sal_False;
}
-sal_Bool StarBASIC::Disassemble( SbModule* pMod, String& rText )
-{
- rText.Erase();
- if( pMod )
- pMod->Disassemble( rText );
- return sal_Bool( rText.Len() != 0 );
-}
-
void StarBASIC::Clear()
{
while( pModules->Count() )
@@ -1290,19 +1282,6 @@ void StarBASIC::DeInitAllModules( void )
}
}
-// #43011 For TestTool, to delete global vars
-void StarBASIC::ClearGlobalVars( void )
-{
- SbxArrayRef xProps( GetProperties() );
- sal_uInt16 nPropCount = xProps->Count();
- for ( sal_uInt16 nProp = 0 ; nProp < nPropCount ; ++nProp )
- {
- SbxBase* pVar = xProps->Get( nProp );
- pVar->Clear();
- }
- SetModified( sal_True );
-}
-
// This implementation at first searches within the runtime library,
// then it looks for an element within one module. This moudle can be
// a public var or an entrypoint. If it is not found and we look for a
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index 85a84350efd8..e65924526e2f 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -445,8 +445,6 @@ TYPEINIT1(SbJScriptMethod,SbMethod)
TYPEINIT1(SbObjModule,SbModule)
TYPEINIT1(SbUserFormModule,SbObjModule)
-typedef std::vector<HighlightPortion> HighlightPortions;
-
uno::Reference< frame::XModel > getDocumentModel( StarBASIC* pb )
{
uno::Reference< frame::XModel > xModel;
@@ -994,12 +992,6 @@ void SbModule::SetSource32( const ::rtl::OUString& r )
EndDefinitions( sal_True );
}
-void SbModule::SetComment( const String& r )
-{
- aComment = r;
- SetModified( sal_True );
-}
-
SbMethod* SbModule::GetFunctionForLine( sal_uInt16 nLine )
{
for( sal_uInt16 i = 0; i < pMethods->Count(); i++ )
diff --git a/basic/source/comp/sbcomp.cxx b/basic/source/comp/sbcomp.cxx
index 1b4122ea7d1e..19d6484f7be6 100644
--- a/basic/source/comp/sbcomp.cxx
+++ b/basic/source/comp/sbcomp.cxx
@@ -957,16 +957,4 @@ sal_Bool SbModule::Compile()
return bRet;
}
-/**************************************************************************
-*
-* Syntax-Highlighting
-*
-**************************************************************************/
-
-void StarBASIC::Highlight( const String& rSrc, SbTextPortions& rList )
-{
- SbiTokenizer aTok( rSrc );
- aTok.Hilite( rList );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/inc/propacc.hxx b/basic/source/inc/propacc.hxx
index 1497bbc0df9d..0c27c32d27f6 100644
--- a/basic/source/inc/propacc.hxx
+++ b/basic/source/inc/propacc.hxx
@@ -107,7 +107,6 @@ typedef ::cppu::WeakImplHelper1< NS_BEANS::XPropertySetInfo > SbPropertySetInfoH
class PropertySetInfoImpl
{
friend class SbPropertySetInfo;
- friend class SbPropertyContainer;
NS_UNO::Sequence< NS_BEANS::Property > _aProps;
@@ -130,7 +129,6 @@ class SbPropertySetInfo: public SbPropertySetInfoHelper
PropertySetInfoImpl aImpl;
public:
- SbPropertySetInfo();
SbPropertySetInfo( const SbPropertyValueArr_Impl &rPropVals );
virtual ~SbPropertySetInfo();
@@ -143,39 +141,6 @@ public:
throw( NS_UNO::RuntimeException );
};
-//==========================================================================
-
-typedef ::cppu::WeakImplHelper2< NS_BEANS::XPropertySetInfo, NS_BEANS::XPropertyContainer > SbPropertyContainerHelper;
-
-class SbPropertyContainer: public SbPropertyContainerHelper
-{
- PropertySetInfoImpl aImpl;
-
-public:
- SbPropertyContainer();
- virtual ~SbPropertyContainer();
-
- // XPropertyContainer
- virtual void SAL_CALL addProperty( const ::rtl::OUString& Name,
- sal_Int16 Attributes,
- const NS_UNO::Any& DefaultValue)
- throw( NS_BEANS::PropertyExistException, NS_BEANS::IllegalTypeException,
- NS_LANG::IllegalArgumentException, NS_UNO::RuntimeException );
- virtual void SAL_CALL removeProperty(const ::rtl::OUString& Name)
- throw( NS_BEANS::UnknownPropertyException, NS_UNO::RuntimeException );
-
- // XPropertySetInfo
- virtual NS_UNO::Sequence< NS_BEANS::Property > SAL_CALL getProperties(void) throw();
- virtual NS_BEANS::Property SAL_CALL getPropertyByName(const ::rtl::OUString& Name)
- throw( NS_UNO::RuntimeException );
- virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& Name)
- throw( NS_UNO::RuntimeException );
-
- // XPropertyAccess
- virtual NS_UNO::Sequence< NS_BEANS::PropertyValue > SAL_CALL getPropertyValues(void);
- virtual void SAL_CALL setPropertyValues(const NS_UNO::Sequence< NS_BEANS::PropertyValue >& PropertyValues_);
-};
-
//=========================================================================
class StarBASIC;
diff --git a/basic/source/sbx/sbxobj.cxx b/basic/source/sbx/sbxobj.cxx
index 10d24262569d..7a30bf8b0a03 100644
--- a/basic/source/sbx/sbxobj.cxx
+++ b/basic/source/sbx/sbxobj.cxx
@@ -323,21 +323,6 @@ void SbxObject::SetDfltProperty( const XubString& rName )
SetModified( sal_True );
}
-void SbxObject::SetDfltProperty( SbxProperty* p )
-{
- if( p )
- {
- sal_uInt16 n;
- SbxArray* pArray = FindVar( p, n );
- pArray->Put( p, n );
- if( p->GetParent() != this )
- p->SetParent( this );
- Broadcast( SBX_HINT_OBJECTCHANGED );
- }
- pDfltProp = p;
- SetModified( sal_True );
-}
-
// Search of a already available variable. If she was located,
// the index will be set, elsewise will be delivered the Count of the Array.
// In any case it will be delivered the correct Array.
@@ -904,15 +889,6 @@ SbxMethod::~SbxMethod()
{
}
-sal_Bool SbxMethod::Run( SbxValues* pValues )
-{
- SbxValues aRes;
- if( !pValues )
- pValues = &aRes;
- pValues->eType = SbxVARIANT;
- return Get( *pValues );
-}
-
SbxClassType SbxMethod::GetClass() const
{
return SbxCLASS_METHOD;