[Libreoffice-commits] core.git: writerfilter/source

Miklos Vajna vmiklos at collabora.co.uk
Sun Nov 30 12:10:28 PST 2014


 writerfilter/source/resourcemodel/TagLogger.cxx |   64 ------------------------
 1 file changed, 64 deletions(-)

New commits:
commit 5486aae1708835c44e4c757dbee785eb534bb214
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Sun Nov 30 21:09:10 2014 +0100

    loplugin:unreffun: PropertySetDumpHandler
    
    Change-Id: I5e2776a7c7a01ea7486b7608a8664aa88842a510

diff --git a/writerfilter/source/resourcemodel/TagLogger.cxx b/writerfilter/source/resourcemodel/TagLogger.cxx
index 7551871..8008268 100644
--- a/writerfilter/source/resourcemodel/TagLogger.cxx
+++ b/writerfilter/source/resourcemodel/TagLogger.cxx
@@ -237,70 +237,6 @@ namespace writerfilter
         xmlTextWriterEndElement( pWriter );
     }
 
-    class PropertySetDumpHandler : public Properties
-    {
-        IdToString::Pointer_t mpIdToString;
-        TagLogger* m_pLogger;
-
-    public:
-        PropertySetDumpHandler(TagLogger* pLogger,
-                IdToString::Pointer_t pIdToString);
-        virtual ~PropertySetDumpHandler();
-
-        void resolve(writerfilter::Reference<Properties>::Pointer_t props);
-
-        virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
-        virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
-    };
-
-    PropertySetDumpHandler::PropertySetDumpHandler(TagLogger* pLogger,
-            IdToString::Pointer_t pIdToString) :
-        mpIdToString(pIdToString),
-        m_pLogger(pLogger)
-    {
-    }
-
-    PropertySetDumpHandler::~PropertySetDumpHandler()
-    {
-    }
-
-    void PropertySetDumpHandler::resolve(
-            writerfilter::Reference<Properties>::Pointer_t pProps)
-    {
-        if (pProps.get() != nullptr)
-            pProps->resolve( *this );
-    }
-
-    void PropertySetDumpHandler::attribute(Id name, Value & val)
-    {
-        m_pLogger->startElement( "attribute" );
-
-        m_pLogger->attribute("name", (*QNameToString::Instance())(name));
-        m_pLogger->attribute("value", val.toString());
-
-        resolve(val.getProperties());
-
-        m_pLogger->endElement();
-    }
-
-    void PropertySetDumpHandler::sprm(Sprm & rSprm)
-    {
-        m_pLogger->startElement( "sprm" );
-
-        std::string sName;
-
-        if (mpIdToString != IdToString::Pointer_t())
-            sName = mpIdToString->toString(rSprm.getId());
-
-        m_pLogger->attribute( "name", sName );
-
-        m_pLogger->attribute( "id", rSprm.getId() );
-        m_pLogger->attribute( "value", rSprm.getValue()->toString() );
-
-        resolve( rSprm.getProps() );
-
-        m_pLogger->endElement();
-    }
 #endif
 
 }


More information about the Libreoffice-commits mailing list