diff options
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 |