diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-19 15:17:30 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-01-20 08:13:51 +0000 |
commit | 4ff5a5558472beee85eb1234dcc2aa2ed9000f6c (patch) | |
tree | b2a0a83933064b7a22db0e27c0a3d8b7339053de /sax/source/fastparser | |
parent | 3179e8f7e6ce550bbe766ed730e68b0374944dd5 (diff) |
loplugin:unusedmethods
Change-Id: Ib2dc804f55d1a96ae01f2cf31b7d55956040a72e
Reviewed-on: https://gerrit.libreoffice.org/21603
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sax/source/fastparser')
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
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<OUString> 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 |