From c9611c5e6465948de029e9c2fbd17e75ee07d31f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 22 Feb 2019 15:31:15 +0200 Subject: loplugin:unusedfields in l10ntools..sax Change-Id: I6e4ff4853c3995072b020af54549dc81303a4fde Reviewed-on: https://gerrit.libreoffice.org/68225 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sax/source/expatwrap/sax_expat.cxx | 6 ++---- sax/source/fastparser/fastparser.cxx | 24 ++++-------------------- 2 files changed, 6 insertions(+), 24 deletions(-) (limited to 'sax') diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx index 57437b093442..e98da4dd2a83 100644 --- a/sax/source/expatwrap/sax_expat.cxx +++ b/sax/source/expatwrap/sax_expat.cxx @@ -176,8 +176,6 @@ public: // module scope bool bExceptionWasThrown; bool bRTExceptionWasThrown; - Locale locale; - public: SaxExpatParser_Impl() : m_bEnableDoS(false) @@ -512,9 +510,9 @@ void SaxExpatParser::setEntityResolver(const css::uno::Reference < XEntityResolv } -void SaxExpatParser::setLocale( const Locale & locale ) +void SaxExpatParser::setLocale( const Locale & ) { - m_pImpl->locale = locale; + // not implemented } // XServiceInfo diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index a8c0c8fc357c..1e8b578e325f 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -124,9 +124,7 @@ struct ParserData css::uno::Reference< css::xml::sax::XFastTokenHandler > mxTokenHandler; FastTokenHandlerBase* mpTokenHandler; css::uno::Reference< css::xml::sax::XErrorHandler > mxErrorHandler; - css::uno::Reference< css::xml::sax::XEntityResolver > mxEntityResolver; css::uno::Reference< css::xml::sax::XFastNamespaceHandler >mxNamespaceHandler; - css::lang::Locale maLocale; ParserData(); }; @@ -228,11 +226,7 @@ public: /// @throws css::uno::RuntimeException void setErrorHandler( const css::uno::Reference< css::xml::sax::XErrorHandler >& Handler ); /// @throws css::uno::RuntimeException - void setEntityResolver( const css::uno::Reference< css::xml::sax::XEntityResolver >& Resolver ); - /// @throws css::uno::RuntimeException void setNamespaceHandler( const css::uno::Reference< css::xml::sax::XFastNamespaceHandler >& Handler); - /// @throws css::uno::RuntimeException - void setLocale( const css::lang::Locale& rLocale ); // called by the C callbacks of the expat parser void callbackStartElement( const xmlChar *localName , const xmlChar* prefix, const xmlChar* URI, @@ -917,16 +911,6 @@ void FastSaxParserImpl::setErrorHandler(const Reference< XErrorHandler > & Handl maData.mxErrorHandler = Handler; } -void FastSaxParserImpl::setEntityResolver(const Reference < XEntityResolver > & Resolver) -{ - maData.mxEntityResolver = Resolver; -} - -void FastSaxParserImpl::setLocale( const lang::Locale & Locale ) -{ - maData.maLocale = Locale; -} - void FastSaxParserImpl::setNamespaceHandler( const Reference< XFastNamespaceHandler >& Handler ) { maData.mxNamespaceHandler = Handler; @@ -1400,14 +1384,14 @@ void FastSaxParser::setErrorHandler( const uno::Reference< xml::sax::XErrorHandl mpImpl->setErrorHandler(Handler); } -void FastSaxParser::setEntityResolver( const uno::Reference< xml::sax::XEntityResolver >& Resolver ) +void FastSaxParser::setEntityResolver( const uno::Reference< xml::sax::XEntityResolver >& ) { - mpImpl->setEntityResolver(Resolver); + // not implemented } -void FastSaxParser::setLocale( const lang::Locale& rLocale ) +void FastSaxParser::setLocale( const lang::Locale& ) { - mpImpl->setLocale(rLocale); + // not implemented } void FastSaxParser::setNamespaceHandler( const uno::Reference< css::xml::sax::XFastNamespaceHandler >& Handler) -- cgit