diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-06-27 15:04:20 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-06-27 18:23:13 +0200 |
commit | da4357fef9a4de2b51ab0e080c864d9e90e15b77 (patch) | |
tree | 6d658eda68f29a43d1ed3d4c9bcf3abbc63c5e5c | |
parent | 538c649f799c8c03218654588e6fd37162a151a1 (diff) |
OOXMLFastContextHandler: remove unused stuff
Change-Id: I02cc740f2701043ca35bbbdb026cbc7f6de200bc
Reviewed-on: https://gerrit.libreoffice.org/39300
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 15 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFastContextHandler.hxx | 4 |
2 files changed, 0 insertions, 19 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index 5c5290d75e45..e208e60b4920 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -17,14 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <iostream> -#include <set> -#include <comphelper/servicehelper.hxx> -#include <com/sun/star/drawing/XShapes.hpp> #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> #include <com/sun/star/xml/sax/FastShapeContextHandler.hpp> #include <com/sun/star/xml/sax/SAXException.hpp> -#include <ooxml/QNameToString.hxx> #include <ooxml/resourceids.hxx> #include <oox/token/namespaces.hxx> #include <comphelper/embeddedobjectcontainer.hxx> @@ -54,14 +49,10 @@ using namespace ::com::sun::star; using namespace oox; using namespace ::std; -static set<OOXMLFastContextHandler *> aSetContexts; - /* class OOXMLFastContextHandler */ -sal_uInt32 OOXMLFastContextHandler::mnInstanceCount = 0; - OOXMLFastContextHandler::OOXMLFastContextHandler (uno::Reference< uno::XComponentContext > const & context) : mpParent(nullptr), @@ -75,9 +66,6 @@ OOXMLFastContextHandler::OOXMLFastContextHandler m_bDiscardChildren(false), m_bTookChoice(false) { - mnInstanceCount++; - aSetContexts.insert(this); - if (mpParserState.get() == nullptr) mpParserState.reset(new OOXMLParserState()); @@ -101,14 +89,11 @@ OOXMLFastContextHandler::OOXMLFastContextHandler(OOXMLFastContextHandler * pCont if (mpParserState.get() == nullptr) mpParserState.reset(new OOXMLParserState()); - mnInstanceCount++; - aSetContexts.insert(this); mpParserState->incContextCount(); } OOXMLFastContextHandler::~OOXMLFastContextHandler() { - aSetContexts.erase(this); } bool OOXMLFastContextHandler::prepareMceContext(Token_t nElement, const uno::Reference<xml::sax::XFastAttributeList>& rAttribs) diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx index d7ec09e48e4d..aabbc7eb2056 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_WRITERFILTER_SOURCE_OOXML_OOXMLFASTCONTEXTHANDLER_HXX #define INCLUDED_WRITERFILTER_SOURCE_OOXML_OOXMLFASTCONTEXTHANDLER_HXX -#include <string> #include <set> #include <cppuhelper/implbase.hxx> #include <com/sun/star/uno/XComponentContext.hpp> @@ -28,7 +27,6 @@ #include <com/sun/star/xml/sax/XFastShapeContextHandler.hpp> #include <oox/mathml/import.hxx> #include <oox/mathml/importutils.hxx> -#include <svtools/embedhlp.hxx> #include "OOXMLParserState.hxx" #include "OOXMLPropertySet.hxx" @@ -237,8 +235,6 @@ private: bool m_bDiscardChildren; bool m_bTookChoice; ///< Did we take the Choice or want Fallback instead? - static sal_uInt32 mnInstanceCount; - }; class OOXMLFastContextHandlerStream : public OOXMLFastContextHandler |