From 3ddae219e4be882704ffd917e80c1d8b22c5d48b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 21 Sep 2014 15:46:10 +0200 Subject: remove unused fields pName and pMethodName in SfxSlot class Change-Id: Icca5a0dee296fae1abeb78ea8ffa2f9e934bb111 --- idl/inc/slot.hxx | 4 +--- idl/source/objects/object.cxx | 2 +- idl/source/objects/slot.cxx | 23 ++++------------------- 3 files changed, 6 insertions(+), 23 deletions(-) (limited to 'idl') diff --git a/idl/inc/slot.hxx b/idl/inc/slot.hxx index 220c47866829..65ede6d3f969 100644 --- a/idl/inc/slot.hxx +++ b/idl/inc/slot.hxx @@ -72,8 +72,7 @@ class SvMetaSlot : public SvMetaAttribute sal_uInt16 nCount, const OString& rSlotId, SvSlotElementList &rList, size_t nStart, - const OString& rPrefix, - SvIdlDataBase & rBase, SvStream & rOutStm ); + SvIdlDataBase & rBase, SvStream & rOutStm ); virtual void Write( SvIdlDataBase & rBase, SvStream & rOutStm, sal_uInt16 nTab, WriteType, WriteAttribute = 0 ) SAL_OVERRIDE; @@ -244,7 +243,6 @@ public: sal_uInt16 nCount, SvSlotElementList&, size_t nStart, - const OString&, SvIdlDataBase & rBase, SvStream & rOutStm ); sal_uInt16 WriteSlotParamArray( SvIdlDataBase & rBase, diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx index fa3224f5dfc8..6609031e4b62 100644 --- a/idl/source/objects/object.cxx +++ b/idl/source/objects/object.cxx @@ -452,7 +452,7 @@ sal_uInt16 SvMetaClass::WriteSlots( const OString& rShellName, SvSlotElement * pEle = rSlotList[ i ]; SvMetaSlot * pAttr = pEle->xSlot; nSCount = nSCount + pAttr->WriteSlotMap( rShellName, nCount + nSCount, - rSlotList, i, pEle->aPrefix, rBase, + rSlotList, i, rBase, rOutStm ); } diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 6b8440119840..755bd9a5e255 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -1145,7 +1145,6 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount, const OString& rSlotId, SvSlotElementList& rSlotList, size_t nStart, - const OString& rPrefix, SvIdlDataBase & rBase, SvStream & rOutStm ) { if ( !GetExport() && !GetHidden() ) @@ -1379,25 +1378,12 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount, sal_uLong nSCount = pType->GetAttrCount(); rOutStm .WriteCharPtr( OString::number(nSCount).getStr() ) - .WriteCharPtr( "/*Count*/" ); + .WriteCharPtr( "/*Count*/," ); } else - rOutStm.WriteChar( '0' ); + rOutStm.WriteCharPtr( "0," ); - // name for recording - if ( GetExport() ) - { - rOutStm.WriteCharPtr( ",\"" ); - if (!rPrefix.isEmpty()) - rOutStm.WriteCharPtr( rPrefix.getStr() ); - rOutStm.WriteChar( '.' ); - if ( !IsVariable() || !GetType() || - GetType()->GetBaseType()->GetType() != TYPE_STRUCT ) - rOutStm.WriteCharPtr( GetMangleName( false ).getStr() ); - rOutStm.WriteCharPtr( "\"," ); - } - else - rOutStm.WriteCharPtr( ", 0, " ); + rOutStm.WriteCharPtr( " " ); // Method/Property flags if( IsMethod() ) @@ -1463,7 +1449,6 @@ sal_uInt16 SvMetaSlot::WriteSlotParamArray( SvIdlDataBase & rBase, SvStream & rO sal_uInt16 SvMetaSlot::WriteSlotMap( const OString& rShellName, sal_uInt16 nCount, SvSlotElementList& rSlotList, size_t nStart, - const OString& rPrefix, SvIdlDataBase & rBase, SvStream & rOutStm ) { @@ -1483,7 +1468,7 @@ sal_uInt16 SvMetaSlot::WriteSlotMap( const OString& rShellName, sal_uInt16 nCoun nSCount = (sal_uInt16)pType->GetAttrCount(); } - WriteSlot( rShellName, nCount, slotId, rSlotList, nStart, rPrefix, rBase, rOutStm ); + WriteSlot( rShellName, nCount, slotId, rSlotList, nStart, rBase, rOutStm ); return nSCount; } -- cgit v1.2.3