From 3e29b0c4567a0a60fbb7e0f980810f1c3790f58d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 15 Apr 2014 09:47:03 +0200 Subject: [PATCH] Remove unused code Change-Id: Ie16056c7e6716831a0ba61c1f22ded978fb5f3c2 --- sd/qa/unit/HtmlExportTest.cxx | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/sd/qa/unit/HtmlExportTest.cxx b/sd/qa/unit/HtmlExportTest.cxx index 8779f9f1b7d5..a8aab8c909b4 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);