[Libreoffice-commits] core.git: sd/qa

Stephan Bergmann sbergman at redhat.com
Tue Apr 15 00:47:55 PDT 2014


 sd/qa/unit/HtmlExportTest.cxx |   18 ------------------
 1 file changed, 18 deletions(-)

New commits:
commit 3e29b0c4567a0a60fbb7e0f980810f1c3790f58d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Apr 15 09:47:03 2014 +0200

    Remove unused code
    
    Change-Id: Ie16056c7e6716831a0ba61c1f22ded978fb5f3c2

diff --git a/sd/qa/unit/HtmlExportTest.cxx b/sd/qa/unit/HtmlExportTest.cxx
index 8779f9f..a8aab8c 100644
--- a/sd/qa/unit/HtmlExportTest.cxx
+++ b/sd/qa/unit/HtmlExportTest.cxx
@@ -45,24 +45,6 @@ class SdHTMLFilterTest : public SdModelTestBase
         return pXmlXpathObj->nodesetval;
     }
 
-    OUString getXPath(xmlDocPtr pXmlDoc, const OString& rXPath, const OString& rAttribute)
-    {
-        xmlNodeSetPtr pXmlNodes = getXPathNode(pXmlDoc, rXPath);
-        CPPUNIT_ASSERT_EQUAL_MESSAGE(OString("XPath '" + rXPath + "' number of nodes is incorrect").getStr(),
-                                     1, xmlXPathNodeSetGetLength(pXmlNodes));
-        if (rAttribute.isEmpty())
-            return OUString();
-        xmlNodePtr pXmlNode = pXmlNodes->nodeTab[0];
-        return OUString::createFromAscii((const char*)xmlGetProp(pXmlNode, BAD_CAST(rAttribute.getStr())));
-    }
-
-    void assertXPath(xmlDocPtr pXmlDoc, const OString& rXPath, const OString& rAttribute = OString(), const OUString& rExpectedValue = OUString())
-    {
-        OUString aValue = getXPath(pXmlDoc, rXPath, rAttribute);
-        CPPUNIT_ASSERT_EQUAL_MESSAGE(OString("Attribute '" + rAttribute + "' of '" + rXPath + "' incorrect value.").getStr(),
-                                     rExpectedValue, aValue);
-    }
-
     void assertXPath(xmlDocPtr pXmlDoc, const OString& rXPath, int nNumberOfNodes)
     {
         xmlNodeSetPtr pXmlNodes = getXPathNode(pXmlDoc, rXPath);


More information about the Libreoffice-commits mailing list