loplugin:virtualdead unused params in SvXMLExportItemMapper::handleElementItem

Change-Id: Ib77a29d23d8a67fab8441d369b2ff4660c1f99bc
Reviewed-on: https://gerrit.libreoffice.org/81009
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2019-10-17 13:17:12 +02:00
parent 933592b201
commit ecfc368932
4 changed files with 7 additions and 32 deletions

View File

@@ -340,9 +340,6 @@ sw/source/filter/ww8/wrtww8.hxx:798
sw/source/filter/ww8/wrtww8.hxx:863
void MSWordExportBase::OutputGrfNode(const class SwGrfNode &,)
0
sw/source/filter/xml/xmlexpit.hxx:84
void SvXMLExportItemMapper::handleElementItem(class SvXMLExport &,const struct SvXMLItemMapEntry &,const class SfxPoolItem &,const class SvXMLUnitConverter &,const class SfxItemSet &,enum SvXmlExportFlags,)const
011000
vcl/inc/outdev.h:122
_Bool ImplGlyphFallbackFontSubstitution::FindFontSubstitute(class FontSelectPattern &,class LogicalFontInstance *,class rtl::OUString &,)const
101

View File

@@ -239,9 +239,7 @@ void SvXMLExportItemMapper::exportXML( const SvXMLExport& rExport,
void SvXMLExportItemMapper::exportElementItems(
SvXMLExport& rExport,
const SvXMLUnitConverter& rUnitConverter,
const SfxItemSet &rSet,
SvXmlExportFlags nFlags,
const std::vector<sal_uInt16> &rIndexArray ) const
{
const size_t nCount = rIndexArray.size();
@@ -259,8 +257,7 @@ void SvXMLExportItemMapper::exportElementItems(
if(pItem)
{
rExport.IgnorableWhitespace();
handleElementItem( rExport, rEntry, *pItem, rUnitConverter,
rSet, nFlags);
handleElementItem( rEntry, *pItem );
bItemsExported = true;
}
}
@@ -314,8 +311,7 @@ void SvXMLExportItemMapper::exportXML( SvXMLExport& rExport,
SvXMLElementExport aElem( rExport, XML_NAMESPACE_STYLE, ePropToken,
false, false );
exportElementItems( rExport, rUnitConverter,
rSet, SvXmlExportFlags::IGN_WS, aIndexArray );
exportElementItems( rExport, rSet, aIndexArray );
}
}
@@ -334,12 +330,8 @@ void SvXMLExportItemMapper::handleSpecialItem( SvXMLAttributeList& /*rAttrList*/
/** this method is called for every item that has the
MID_SW_FLAG_ELEMENT_EXPORT flag set */
void SvXMLExportItemMapper::handleElementItem(
SvXMLExport& /*rExport*/,
const SvXMLItemMapEntry& /*rEntry*/,
const SfxPoolItem& /*rItem*/,
const SvXMLUnitConverter& /*rUnitConverter*/,
const SfxItemSet& /*rSet*/,
SvXmlExportFlags /*nFlags*/ ) const
const SfxPoolItem& /*rItem*/ ) const
{
OSL_FAIL( "element item not handled in xml export" );
}

View File

@@ -53,9 +53,7 @@ protected:
const SfxItemSet *pSet ) const;
void exportElementItems( SvXMLExport& rExport,
const SvXMLUnitConverter& rUnitConverter,
const SfxItemSet &rSet,
SvXmlExportFlags nFlags,
const std::vector<sal_uInt16> &rIndexArray ) const;
static const SfxPoolItem* GetItem( const SfxItemSet &rSet,
@@ -81,12 +79,8 @@ public:
/** this method is called for every item that has the
MID_SW_FLAG_ELEMENT_EXPORT flag set */
virtual void handleElementItem( SvXMLExport& rExport,
const SvXMLItemMapEntry& rEntry,
const SfxPoolItem& rItem,
const SvXMLUnitConverter& rUnitConverter,
const SfxItemSet& rSet,
SvXmlExportFlags nFlags ) const;
virtual void handleElementItem( const SvXMLItemMapEntry& rEntry,
const SfxPoolItem& rItem ) const;
inline void setMapEntries( SvXMLItemMapEntriesRef rMapEntries );

View File

@@ -73,12 +73,8 @@ public:
const SfxItemSet *pSet ) const override;
virtual void handleElementItem(
SvXMLExport& rExport,
const SvXMLItemMapEntry& rEntry,
const SfxPoolItem& rItem,
const SvXMLUnitConverter& rUnitConverter,
const SfxItemSet& rSet,
SvXmlExportFlags nFlags ) const override;
const SfxPoolItem& rItem ) const override;
inline void SetAbsWidth( sal_uInt32 nAbs );
};
@@ -182,12 +178,8 @@ void SwXMLTableItemMapper_Impl::handleSpecialItem(
/** this method is called for every item that has the
MID_SW_FLAG_ELEMENT_EXPORT flag set */
void SwXMLTableItemMapper_Impl::handleElementItem(
SvXMLExport& /*rExport*/,
const SvXMLItemMapEntry& rEntry,
const SfxPoolItem& rItem,
const SvXMLUnitConverter& /*rUnitConverter*/,
const SfxItemSet&,
SvXmlExportFlags ) const
const SfxPoolItem& rItem ) const
{
switch( rEntry.nWhichId )
{