From c37077578deffb79405330967191185967e90b98 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 14 Jun 2018 13:19:22 +0200 Subject: loplugin:unusedfields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7d9966d11f8272034523d9804ecf76e119552780 Reviewed-on: https://gerrit.libreoffice.org/55796 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- xmloff/source/draw/ximpstyl.cxx | 13 ------------- xmloff/source/draw/ximpstyl.hxx | 1 - xmloff/source/text/XMLTextMasterPageContext.cxx | 2 +- 3 files changed, 1 insertion(+), 15 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx index fb6d581709f8..17173a91e79b 100644 --- a/xmloff/source/draw/ximpstyl.cxx +++ b/xmloff/source/draw/ximpstyl.cxx @@ -424,19 +424,6 @@ SdXMLPresentationPageLayoutContext::SdXMLPresentationPageLayoutContext( { // set family to something special at SvXMLStyleContext // for differences in search-methods - - sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0; - for( sal_Int16 i=0; i < nAttrCount; i++ ) - { - const OUString& rAttrName = xAttrList->getNameByIndex( i ); - OUString aLocalName; - sal_uInt16 nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( rAttrName, &aLocalName ); - - if(nPrefix == XML_NAMESPACE_STYLE && IsXMLToken( aLocalName, XML_NAME ) ) - { - msName = xAttrList->getValueByIndex( i ); - } - } } SvXMLImportContextRef SdXMLPresentationPageLayoutContext::CreateChildContext( diff --git a/xmloff/source/draw/ximpstyl.hxx b/xmloff/source/draw/ximpstyl.hxx index 71237cbd41da..a2b4d363673b 100644 --- a/xmloff/source/draw/ximpstyl.hxx +++ b/xmloff/source/draw/ximpstyl.hxx @@ -141,7 +141,6 @@ public: class SdXMLPresentationPageLayoutContext: public SvXMLStyleContext { - OUString msName; std::vector< rtl::Reference< SdXMLPresentationPlaceholderContext > > maList; sal_uInt16 mnTypeId; diff --git a/xmloff/source/text/XMLTextMasterPageContext.cxx b/xmloff/source/text/XMLTextMasterPageContext.cxx index 7ade7edd7a38..f679c7d2d273 100644 --- a/xmloff/source/text/XMLTextMasterPageContext.cxx +++ b/xmloff/source/text/XMLTextMasterPageContext.cxx @@ -64,7 +64,6 @@ XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport, const Reference< XAttributeList > & xAttrList, bool bOverwrite ) : SvXMLStyleContext( rImport, nPrfx, rLName, xAttrList, XML_STYLE_FAMILY_MASTER_PAGE ) -, sIsPhysical( "IsPhysical" ) , sFollowStyle( "FollowStyle" ) , bInsertHeader( false ) , bInsertFooter( false ) @@ -141,6 +140,7 @@ XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport, Reference < XPropertySet > xPropSet( xStyle, UNO_QUERY ); Reference< XPropertySetInfo > xPropSetInfo = xPropSet->getPropertySetInfo(); + OUString sIsPhysical( "IsPhysical" ); if( !bNew && xPropSetInfo->hasPropertyByName( sIsPhysical ) ) { aAny = xPropSet->getPropertyValue( sIsPhysical ); -- cgit