From 4ff5a5558472beee85eb1234dcc2aa2ed9000f6c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 19 Jan 2016 15:17:30 +0200 Subject: loplugin:unusedmethods Change-Id: Ib2dc804f55d1a96ae01f2cf31b7d55956040a72e Reviewed-on: https://gerrit.libreoffice.org/21603 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sax/source/fastparser/fastparser.cxx | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'sax') diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 514c156d7ee5..d67048924a31 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -228,12 +228,9 @@ public: void pushEntity( const Entity& rEntity ); void popEntity(); Entity& getEntity() { return *mpTop; } - const Entity& getEntity() const { return *mpTop; } void parse(); void produce( bool bForceFlush = false ); - bool hasNamespaceURL( const OUString& rPrefix ) const; - private: bool consume(EventList *); void deleteUsedEvents(); @@ -909,27 +906,6 @@ void FastSaxParserImpl::produce( bool bForceFlush ) } } -bool FastSaxParserImpl::hasNamespaceURL( const OUString& rPrefix ) const -{ - if (maEntities.empty()) - return false; - - const Entity& rEntity = getEntity(); - - if (rEntity.maNamespaceCount.empty()) - return false; - - OString aPrefix = OUStringToOString(rPrefix, RTL_TEXTENCODING_UTF8); - sal_uInt32 nNamespace = rEntity.maNamespaceCount.top(); - while (nNamespace--) - { - if (rEntity.maNamespaceDefines[nNamespace]->maPrefix == aPrefix) - return true; - } - - return false; -} - bool FastSaxParserImpl::consume(EventList *pEventList) { Entity& rEntity = getEntity(); @@ -1357,11 +1333,6 @@ uno::Sequence FastSaxParser::getSupportedServiceNames() return seq; } -bool FastSaxParser::hasNamespaceURL( const OUString& rPrefix ) const -{ - return mpImpl->hasNamespaceURL(rPrefix); -} - } // namespace sax_fastparser extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL -- cgit