From e9af29ba8328cad918c5146e3cb1be0a72ebd791 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 19 May 2016 10:43:16 +0200 Subject: loplugin:unusedmethods in writerfilter to xmloff Change-Id: If95890eff0f785111e8b511ac1d5481c6910f099 Reviewed-on: https://gerrit.libreoffice.org/25148 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/inc/StyleMap.hxx | 5 ----- xmloff/inc/txtfldi.hxx | 19 ------------------- xmloff/source/chart/SchXMLPlotAreaContext.hxx | 3 --- xmloff/source/chart/transporttypes.hxx | 17 ----------------- xmloff/source/forms/elementimport.hxx | 3 +-- xmloff/source/text/txtparaimphint.hxx | 7 ------- xmloff/source/transform/TransformerActions.hxx | 16 ---------------- 7 files changed, 1 insertion(+), 69 deletions(-) (limited to 'xmloff') diff --git a/xmloff/inc/StyleMap.hxx b/xmloff/inc/StyleMap.hxx index d11447d6ab0a..77bf1262b4d5 100644 --- a/xmloff/inc/StyleMap.hxx +++ b/xmloff/inc/StyleMap.hxx @@ -35,11 +35,6 @@ struct StyleNameKey_Impl m_aName( rName ) { } - - inline StyleNameKey_Impl() : - m_nFamily( 0 ) - { - } }; struct StyleNameHash_Impl diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx index 670e6d6c356c..04d1abe754d5 100644 --- a/xmloff/inc/txtfldi.hxx +++ b/xmloff/inc/txtfldi.hxx @@ -1339,25 +1339,6 @@ public: const css::uno::Reference & xPropertySet) override; }; -class XMLCustomPropertyFieldImportContext : public XMLTextFieldImportContext -{ -public: - - XMLCustomPropertyFieldImportContext (SvXMLImport& rImport, - XMLTextImportHelper& rHlp, - sal_uInt16 nPrfx, - const OUString& sLocalName); - -protected: - /// process attribute values - virtual void ProcessAttribute( sal_uInt16 nAttrToken, - const OUString& sAttrValue ) override; - - /// prepare XTextField for insertion into document - virtual void PrepareField( - const css::uno::Reference & xPropertySet) override; -}; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.hxx b/xmloff/source/chart/SchXMLPlotAreaContext.hxx index 91db789675aa..2380e3b56ece 100644 --- a/xmloff/source/chart/SchXMLPlotAreaContext.hxx +++ b/xmloff/source/chart/SchXMLPlotAreaContext.hxx @@ -49,9 +49,6 @@ public: virtual ~SchXML3DSceneAttributesHelper(); void getCameraDefaultFromDiagram( const css::uno::Reference< css::chart::XDiagram >& xDiagram ); - -private: - SchXML3DSceneAttributesHelper(); }; class SchXMLPositionAttributesHelper diff --git a/xmloff/source/chart/transporttypes.hxx b/xmloff/source/chart/transporttypes.hxx index a384e2138e8c..b1657a82dd37 100644 --- a/xmloff/source/chart/transporttypes.hxx +++ b/xmloff/source/chart/transporttypes.hxx @@ -89,23 +89,6 @@ typedef ::std::multimap< tSchXMLIndexWithPart, bool operator < ( const tSchXMLIndexWithPart & rFirst, const tSchXMLIndexWithPart & rSecond ); -struct SchNumericCellRangeAddress -{ - sal_Int32 nRow1, nRow2; - sal_Int32 nCol1, nCol2; - - SchNumericCellRangeAddress() : - nRow1( -1 ), nRow2( -1 ), - nCol1( -1 ), nCol2( -1 ) - {} - - SchNumericCellRangeAddress( const SchNumericCellRangeAddress& aOther ) - { - nRow1 = aOther.nRow1; nRow2 = aOther.nRow2; - nCol1 = aOther.nCol1; nCol2 = aOther.nCol2; - } -}; - enum SchXMLAxisDimension { SCH_XML_AXIS_X = 0, diff --git a/xmloff/source/forms/elementimport.hxx b/xmloff/source/forms/elementimport.hxx index 3f6285c7dab4..4c3cde521765 100644 --- a/xmloff/source/forms/elementimport.hxx +++ b/xmloff/source/forms/elementimport.hxx @@ -55,8 +55,7 @@ namespace xmloff typedef std::map MapString2Element; static MapString2Element s_sElementTranslations; - protected: - OElementNameMap() { } + OElementNameMap() = delete; public: static ElementType getElementType(const OUString& _rName); diff --git a/xmloff/source/text/txtparaimphint.hxx b/xmloff/source/text/txtparaimphint.hxx index 973942a60b74..e8308b1470e3 100644 --- a/xmloff/source/text/txtparaimphint.hxx +++ b/xmloff/source/text/txtparaimphint.hxx @@ -51,13 +51,6 @@ public: { } - XMLHint_Impl( sal_uInt8 nTyp, - const css::uno::Reference < css::text::XTextRange > & rS ) : - xStart( rS ), - nType( nTyp ) - { - } - virtual ~XMLHint_Impl() {} const css::uno::Reference < css::text::XTextRange > & GetStart() const { return xStart; } diff --git a/xmloff/source/transform/TransformerActions.hxx b/xmloff/source/transform/TransformerActions.hxx index 79b5961e294c..f7016db0aeda 100644 --- a/xmloff/source/transform/TransformerActions.hxx +++ b/xmloff/source/transform/TransformerActions.hxx @@ -31,13 +31,6 @@ struct NameKey_Impl sal_uInt16 m_nPrefix; OUString m_aLocalName; - inline NameKey_Impl( sal_uInt16 nPrfx, - ::xmloff::token::XMLTokenEnum eLclNm ) : - m_nPrefix( nPrfx ), - m_aLocalName( ::xmloff::token::GetXMLToken( eLclNm ) ) - { - } - inline NameKey_Impl( sal_uInt16 nPrfx, const OUString& rLclNm ) : m_nPrefix( nPrfx ), m_aLocalName( rLclNm ) @@ -82,15 +75,6 @@ struct TransformerAction_Impl sal_uInt32 m_nParam2; sal_uInt32 m_nParam3; - inline TransformerAction_Impl( sal_uInt32 nActnTp, sal_uInt32 nPrm1, - sal_uInt32 nPrm2, sal_uInt32 nPrm3 ) : - m_nActionType( nActnTp ), - m_nParam1( nPrm1 ), - m_nParam2( nPrm2 ), - m_nParam3( nPrm3 ) - { - - } inline TransformerAction_Impl() : m_nActionType( XML_TACTION_EOT ), m_nParam1( 0 ), -- cgit v1.2.3