diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-22 09:48:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-22 13:11:34 +0100 |
commit | 1a2c28cf0dabd1b84d7130186f562de82cb1ca82 (patch) | |
tree | f54172eb3951868da972602acf12c8f91672f87b /idl/source | |
parent | f5fc81616ccf45edd180cfb8c7002eb50284f90d (diff) |
callcatcher: update unused code
Change-Id: I96b4d44e44389245f3ccc4a08198676461c6a38b
Diffstat (limited to 'idl/source')
-rw-r--r-- | idl/source/cmptools/hash.cxx | 10 | ||||
-rw-r--r-- | idl/source/objects/basobj.cxx | 21 | ||||
-rw-r--r-- | idl/source/objects/bastype.cxx | 10 | ||||
-rw-r--r-- | idl/source/objects/module.cxx | 6 | ||||
-rw-r--r-- | idl/source/objects/types.cxx | 40 |
5 files changed, 0 insertions, 87 deletions
diff --git a/idl/source/cmptools/hash.cxx b/idl/source/cmptools/hash.cxx index dc513e402d83..dc6e27cebf98 100644 --- a/idl/source/cmptools/hash.cxx +++ b/idl/source/cmptools/hash.cxx @@ -188,14 +188,4 @@ bool SvStringHashTable::equals( const OString& rElement, return rElement.equals( pEntries[ nIndex ].GetName() ); } -void SvStringHashTable::FillHashList( SvStringHashList * pList ) const -{ - for( sal_uInt32 n = 0; n < GetMax(); n++ ) - { - if( IsEntry( n ) ) - pList->push_back( Get( n ) ); - } - // hash order, sort now -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/idl/source/objects/basobj.cxx b/idl/source/objects/basobj.cxx index 465bd8cb35b7..54a11cdde242 100644 --- a/idl/source/objects/basobj.cxx +++ b/idl/source/objects/basobj.cxx @@ -47,27 +47,6 @@ void SvMetaObject::WriteStars( SvStream & rOutStm ) rOutStm.WriteChar( '/' ) << endl; } -bool SvMetaObject::TestAndSeekSpaceOnly( SvStream & rOutStm, sal_uLong nBegPos ) -{ - // write no empty brackets - sal_uLong nPos = rOutStm.Tell(); - rOutStm.Seek( nBegPos ); - bool bOnlySpace = true; - while( bOnlySpace && rOutStm.Tell() < nPos ) - { - char c; - rOutStm.ReadChar( c ); - if( !isspace( c ) ) - bOnlySpace = false; - } - if( bOnlySpace ) - // nothing written - rOutStm.Seek( nBegPos ); - else - rOutStm.Seek( nPos ); - return bOnlySpace; -} - void SvMetaObject::Back2Delemitter( SvStream & rOutStm ) { // write no empty brackets diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx index a8a3a0a64e37..f83f901b17de 100644 --- a/idl/source/objects/bastype.cxx +++ b/idl/source/objects/bastype.cxx @@ -147,16 +147,6 @@ bool SvBOOL::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ) return false; } -OString SvBOOL::GetSvIdlString( SvStringHashEntry * pName ) -{ - if( nVal ) - return pName->GetName(); - - return OStringBuffer(pName->GetName()). - append("(FALSE)"). - makeStringAndClear(); -} - bool SvIdentifier::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ) { sal_uInt32 nTokPos = rInStm.Tell(); diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx index 9d0ee8ba1ce9..7246ca25a858 100644 --- a/idl/source/objects/module.cxx +++ b/idl/source/objects/module.cxx @@ -29,12 +29,6 @@ TYPEINIT1( SvMetaModule, SvMetaExtern ); -SvMetaModule::SvMetaModule() - : bImported( false ) - , bIsModified( false ) -{ -} - SvMetaModule::SvMetaModule( const OUString & rIdlFileName, bool bImp ) : aIdlFileName( rIdlFileName ) , bImported( bImp ), bIsModified( false ) diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index 3f8ab37b28a2..fa2f50d34db3 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -204,24 +204,6 @@ void SvMetaAttribute::ReadAttributesSvIdl( SvIdlDataBase & rBase, } } -sal_uLong SvMetaAttribute::MakeSlotValue( SvIdlDataBase & rBase, bool bVar ) const -{ - const SvNumberIdentifier & rId = GetSlotId(); - sal_uLong n = rId.GetValue(); - if( !rBase.aStructSlotId.getString().isEmpty() ) - { - n = n << 20; - n += rBase.aStructSlotId.GetValue(); - } - if (dynamic_cast<const SvMetaSlot*>(this)) - n |= 0x20000; - if( !bVar ) - n += 0x10000; - else if ( GetIsCollection() ) - n += 0x40000; - return n; -} - sal_uLong SvMetaAttribute::MakeSfx( OStringBuffer& rAttrArray ) { SvMetaType * pType = GetType(); @@ -336,14 +318,6 @@ const OString& SvMetaType::GetBasicName() const return static_cast<SvMetaType*>(GetRef())->GetBasicName(); } -OString SvMetaType::GetBasicPostfix() const -{ - // MBN and Co always want "As xxx" - return OStringBuffer(" As "). - append(GetBasicName()). - makeStringAndClear(); -} - bool SvMetaType::GetIn() const { if( aIn.IsSet() || !GetRef() ) @@ -450,20 +424,6 @@ bool SvMetaType::SetName( const OString& rName, SvIdlDataBase * pBase ) return SvMetaReference::SetName( rName, pBase ); } -OString SvMetaType::GetCString() const -{ - OStringBuffer out( GetSvName() ); - if( aCall0 == (int)CALL_POINTER ) - out.append(" *"); - else if( aCall0 == (int)CALL_REFERENCE ) - out.append(" &"); - if( aCall1 == (int)CALL_POINTER ) - out.append('*'); - else if( aCall1 == (int)CALL_REFERENCE ) - out.append('&'); - return out.makeStringAndClear(); -} - bool SvMetaType::ReadHeaderSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) { |