summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-18 16:00:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-18 21:42:10 +0200
commit3d36ff1a1d94bcdb6facf12eec00a532b6640880 (patch)
treedf0ecd92d5974ea9c4b6634df83cb3ef5d409f15 /xmlscript
parent67b5e875c65c5ed72a170a03d33992edd3802c75 (diff)
loplugin:unusedfields
Change-Id: Ib574403a7f7f8b11c6263c9c19ec6b65c8374ddd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115753 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/qa/cppunit/test.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/xmlscript/qa/cppunit/test.cxx b/xmlscript/qa/cppunit/test.cxx
index fd5137db90d1..62f0bb1885c7 100644
--- a/xmlscript/qa/cppunit/test.cxx
+++ b/xmlscript/qa/cppunit/test.cxx
@@ -41,7 +41,6 @@ using namespace ::com::sun::star;
/// Sample tests for import
class XmlScriptTest : public test::BootstrapFixture, public unotest::MacrosTest, public XmlTestTools
{
- uno::Reference<lang::XComponent> mxComponent;
OUString maDataPath;
void testBasicElements();
@@ -53,7 +52,6 @@ class XmlScriptTest : public test::BootstrapFixture, public unotest::MacrosTest,
public:
virtual void setUp() override;
- virtual void tearDown() override;
virtual void registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx) override
{
@@ -76,14 +74,6 @@ void XmlScriptTest::setUp()
mxDesktop.set(frame::Desktop::create(mxComponentContext));
}
-void XmlScriptTest::tearDown()
-{
- if (mxComponent.is())
- mxComponent->dispose();
-
- test::BootstrapFixture::tearDown();
-}
-
Reference<container::XNameContainer> XmlScriptTest::importFile(std::u16string_view sFileName)
{
OUString sFullName = m_directories.getURLFromSrc(maDataPath) + sFileName;