From 393c3930c8cedb2fcf380539c57d8da5cfb31572 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 7 Aug 2020 21:53:13 +0200 Subject: Remove dead code mxComponent is known to be null at the start of a test function Change-Id: Ifb3b7dd33769ef71d980fb110eab2dceb03bc52c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100370 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- xmlsecurity/qa/unit/signing/signing2.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/qa/unit/signing/signing2.cxx b/xmlsecurity/qa/unit/signing/signing2.cxx index 2430840499ac..ea88982b9be8 100644 --- a/xmlsecurity/qa/unit/signing/signing2.cxx +++ b/xmlsecurity/qa/unit/signing/signing2.cxx @@ -81,8 +81,6 @@ CPPUNIT_TEST_FIXTURE(SigningTest2, testPreserveMacroSignatureODB) const OUString sLoadMessage = "loading failed: " + aURL; // load the file - if (mxComponent.is()) - mxComponent->dispose(); mxComponent = loadFromDesktop(aURL, "com.sun.star.sdb.OfficeDatabaseDocument"); CPPUNIT_ASSERT_MESSAGE(OUStringToOString(sLoadMessage, RTL_TEXTENCODING_UTF8).getStr(), mxComponent.is()); -- cgit