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 | |
parent | f5fc81616ccf45edd180cfb8c7002eb50284f90d (diff) |
callcatcher: update unused code
Change-Id: I96b4d44e44389245f3ccc4a08198676461c6a38b
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/basobj.hxx | 1 | ||||
-rw-r--r-- | idl/inc/bastype.hxx | 1 | ||||
-rw-r--r-- | idl/inc/hash.hxx | 2 | ||||
-rw-r--r-- | idl/inc/module.hxx | 1 | ||||
-rw-r--r-- | idl/inc/types.hxx | 3 | ||||
-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 |
10 files changed, 0 insertions, 95 deletions
diff --git a/idl/inc/basobj.hxx b/idl/inc/basobj.hxx index e35cc45c3fde..0dd63c3537c3 100644 --- a/idl/inc/basobj.hxx +++ b/idl/inc/basobj.hxx @@ -43,7 +43,6 @@ public: SvMetaObject(); static void WriteTab( SvStream & rOutStm, sal_uInt16 nTab ); - static bool TestAndSeekSpaceOnly( SvStream &, sal_uLong nBegPos ); static void Back2Delemitter( SvStream & ); static void WriteStars( SvStream & ); diff --git a/idl/inc/bastype.hxx b/idl/inc/bastype.hxx index e8da2c4b5af9..2252f9ad6d1f 100644 --- a/idl/inc/bastype.hxx +++ b/idl/inc/bastype.hxx @@ -65,7 +65,6 @@ public: friend SvStream& operator >> (SvStream &, SvBOOL &); bool ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ); - OString GetSvIdlString( SvStringHashEntry * pName ); }; diff --git a/idl/inc/hash.hxx b/idl/inc/hash.hxx index aaecabe82d0c..4836138e8a27 100644 --- a/idl/inc/hash.hxx +++ b/idl/inc/hash.hxx @@ -114,8 +114,6 @@ public: SvStringHashEntry * Get ( sal_uInt32 nIndex ) const; // return pointer to string SvStringHashEntry & operator []( sal_uInt32 nPos ) const { return pEntries[ nPos ]; } - - void FillHashList( SvStringHashList * rList ) const; }; #endif // INCLUDED_IDL_INC_HASH_HXX diff --git a/idl/inc/module.hxx b/idl/inc/module.hxx index 92c11d6942ec..a82493f56c97 100644 --- a/idl/inc/module.hxx +++ b/idl/inc/module.hxx @@ -54,7 +54,6 @@ protected: virtual void ReadContextSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ) SAL_OVERRIDE; public: TYPEINFO_OVERRIDE(); - SvMetaModule(); const OUString & GetIdlFileName() const { return aIdlFileName; } const OString& GetModulePrefix() const { return aModulePrefix.getString(); } diff --git a/idl/inc/types.hxx b/idl/inc/types.hxx index f53fb3156d28..2ce04f62d7ca 100644 --- a/idl/inc/types.hxx +++ b/idl/inc/types.hxx @@ -45,7 +45,6 @@ class SvMetaAttribute : public SvMetaReference bool bNewAttr; protected: - sal_uLong MakeSlotValue( SvIdlDataBase & rBase, bool bVariable ) const; virtual void ReadAttributesSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm ) SAL_OVERRIDE; public: @@ -177,7 +176,6 @@ public: { aBasicName.setString(rName); } const OString& GetBasicName() const; - OString GetBasicPostfix() const; const OString& GetSvName() const; const OString& GetSbxName() const; const OString& GetOdlName() const; @@ -188,7 +186,6 @@ public: virtual bool ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ) SAL_OVERRIDE; - OString GetCString() const; sal_uLong MakeSfx( OStringBuffer& rAtrrArray ); virtual void WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm ); 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 ) { |