diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-24 11:41:39 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-25 09:34:43 +0200 |
commit | d5b4eccee3c462a12f8caf1fccf38cc6e2a34a68 (patch) | |
tree | f5d7b0566b88d266e9b1134cb5b519d0bbf63f2b /writerfilter | |
parent | 0f0a22ade666d33a10d9c83c0f636be9acf1ed39 (diff) |
writerfilter: remove unused dumpXml() methods
Unused since 51d1545e0ce8b30eea710501b84853288dd2563b (writerfilter:
Kill debug_logger., 2014-06-11).
Change-Id: I01743a9f5c603da06cfd422d29d3258a17d4dd40
Diffstat (limited to 'writerfilter')
4 files changed, 0 insertions, 140 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index 7bdebfc1656c..ba60f70fc265 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -57,33 +57,6 @@ using namespace ::com::sun::star; using namespace oox; using namespace ::std; -#ifdef DEBUG_WRITERFILTER -static string resourceToString(OOXMLFastContextHandler::ResourceEnum_t eResource) -{ - string sResult; - - switch (eResource) - { - case OOXMLFastContextHandler::STREAM: - sResult = "Stream"; - break; - case OOXMLFastContextHandler::PROPERTIES: - sResult = "Properties"; - break; - case OOXMLFastContextHandler::TABLE: - sResult = "Table"; - break; - case OOXMLFastContextHandler::SHAPE: - sResult = "Shape"; - break; - default: - sResult = "??"; - } - - return sResult; -} -#endif - set<OOXMLFastContextHandler *> aSetContexts; #ifdef DEBUG_WRITERFILTER @@ -375,37 +348,6 @@ void OOXMLFastContextHandler::endAction(Token_t Element) OOXMLFactory::getInstance()->endAction(this, Element); } -#ifdef DEBUG_WRITERFILTER -void OOXMLFastContextHandler::dumpXml( const TagLogger::Pointer_t pLogger ) const -{ - pLogger->startElement("context"); - - static char sBuffer[128]; - snprintf(sBuffer, sizeof(sBuffer), "%p", this); - - pLogger->attribute("parent", std::string(sBuffer)); - pLogger->attribute("type", getType()); - pLogger->attribute("resource", resourceToString(getResource())); - pLogger->attribute("token", fastTokenToId(getToken())); - pLogger->attribute("id", (*QNameToString::Instance())(getId())); - - OOXMLValue::Pointer_t pVal(getValue()); - - if (pVal.get() != nullptr) - pLogger->attribute("value", pVal->toString()); - else - pLogger->attribute("value", std::string("(null)")); - - pLogger->propertySet(getPropertySet(), - IdToString::Pointer_t(new OOXMLIdToString())); - - mpParserState->dumpXml( pLogger ); - - pLogger->endElement(); -} - -#endif - void OOXMLFastContextHandler::setId(Id rId) { mId = rId; @@ -1093,38 +1035,6 @@ OOXMLValue::Pointer_t OOXMLFastContextHandlerProperties::getValue() const return OOXMLValue::Pointer_t(new OOXMLPropertySetValue(mpPropertySet)); } -#ifdef DEBUG_WRITERFILTER -void OOXMLFastContextHandlerProperties::dumpXml( const TagLogger::Pointer_t pLogger) const -{ - pLogger->startElement("context"); - - static char sBuffer[128]; - snprintf(sBuffer, sizeof(sBuffer), "%p", this); - - pLogger->attribute("parent", std::string(sBuffer)); - pLogger->attribute("type", getType()); - pLogger->attribute("resource", resourceToString(getResource())); - pLogger->attribute("token", fastTokenToId(getToken())); - pLogger->attribute("id", (*QNameToString::Instance())(getId())); - - OOXMLValue::Pointer_t pVal(getValue()); - - if (pVal.get() != nullptr) - pLogger->attribute("value", pVal->toString()); - else - pLogger->attribute("value", std::string("(null)")); - - pLogger->attribute("resolve", mbResolve ? "resolve" : "noResolve"); - - pLogger->propertySet(getPropertySet(), - IdToString::Pointer_t(new OOXMLIdToString())); - - mpParserState->dumpXml( pLogger ); - - pLogger->endElement(); -} -#endif - void OOXMLFastContextHandlerProperties::newProperty (const Id & rId, OOXMLValue::Pointer_t pVal) { diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx index 7dfb793d5e2d..33ea6e02f0cd 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx @@ -203,10 +203,6 @@ public: void sendPropertyToParent(); -#ifdef DEBUG_WRITERFILTER - virtual void dumpXml( const TagLogger::Pointer_t pLogger ) const; -#endif - sal_uInt32 getInstanceNumber() { return mnInstanceNumber; } protected: OOXMLFastContextHandler * mpParent; @@ -306,10 +302,6 @@ public: virtual void setPropertySet(OOXMLPropertySet::Pointer_t pPropertySet) SAL_OVERRIDE; virtual OOXMLPropertySet::Pointer_t getPropertySet() const SAL_OVERRIDE; -#ifdef DEBUG_WRITERFILTER - virtual void dumpXml( const TagLogger::Pointer_t pLogger ) const SAL_OVERRIDE; -#endif - protected: /// the properties OOXMLPropertySet::Pointer_t mpPropertySet; diff --git a/writerfilter/source/ooxml/OOXMLParserState.cxx b/writerfilter/source/ooxml/OOXMLParserState.cxx index 3b8f7647cf73..d8cffa4ddf8c 100644 --- a/writerfilter/source/ooxml/OOXMLParserState.cxx +++ b/writerfilter/source/ooxml/OOXMLParserState.cxx @@ -264,43 +264,6 @@ void OOXMLParserState::endTxbxContent() inTxbxContent = false; } -#ifdef DEBUG_WRITERFILTER -void OOXMLParserState::dumpXml( const TagLogger::Pointer_t& pLogger ) -{ - pLogger->startElement("parserstate"); - - std::string sTmp; - - if (isInSectionGroup()) - sTmp += "s"; - else - sTmp += "-"; - - if (isInParagraphGroup()) - sTmp += "p"; - else - sTmp += "-"; - - if (isInCharacterGroup()) - sTmp += "c"; - else - sTmp += "-"; - - if (isForwardEvents()) - sTmp += "f"; - else - sTmp += "-"; - - pLogger->attribute("state", sTmp); - pLogger->attribute("XNoteId", getXNoteId() ); - if (mpCharacterProps != OOXMLPropertySet::Pointer_t()) - pLogger->chars(mpCharacterProps->toString()); - - pLogger->endElement(); - } - -#endif - }} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/writerfilter/source/ooxml/OOXMLParserState.hxx b/writerfilter/source/ooxml/OOXMLParserState.hxx index eff9d872cb90..5e22257f61bc 100644 --- a/writerfilter/source/ooxml/OOXMLParserState.hxx +++ b/writerfilter/source/ooxml/OOXMLParserState.hxx @@ -115,11 +115,6 @@ public: void startTxbxContent(); void endTxbxContent(); -#ifdef DEBUG_WRITERFILTER -public: - void dumpXml( const TagLogger::Pointer_t& pLogger ); -#endif - }; }} |