diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-03 09:55:06 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-03 13:41:14 +0100 |
commit | d40d64da771427423786dc62a2f4ad08cab53179 (patch) | |
tree | 74b5b460e963ede6b6ecdccaed9cf2c577c7a69c /sw/qa/unit | |
parent | beceac5e0a2075696bbb267830ee952ade18da89 (diff) |
swmodeltestbase: remove duplicated code
parseExportStream is already in MacrosTest
Change-Id: Ibde88b176db1521966b6877bda90e06c278c397d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142218
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/unit')
-rw-r--r-- | sw/qa/unit/swmodeltestbase.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sw/qa/unit/swmodeltestbase.cxx b/sw/qa/unit/swmodeltestbase.cxx index a526f4901331..ab5ed2fcbe52 100644 --- a/sw/qa/unit/swmodeltestbase.cxx +++ b/sw/qa/unit/swmodeltestbase.cxx @@ -694,20 +694,6 @@ xmlDocUniquePtr SwModelTestBase::parseExportedFile() return parseXmlStream(&stream); } -std::unique_ptr<SvStream> SwModelTestBase::parseExportStream(const OUString& url, - const OUString& rStreamName) -{ - // Read the stream we're interested in. - uno::Reference<packages::zip::XZipFileAccess2> xNameAccess - = packages::zip::ZipFileAccess::createWithURL(comphelper::getComponentContext(m_xSFactory), - url); - uno::Reference<io::XInputStream> xInputStream(xNameAccess->getByName(rStreamName), - uno::UNO_QUERY); - CPPUNIT_ASSERT(xInputStream.is()); - std::unique_ptr<SvStream> pStream(utl::UcbStreamHelper::CreateStream(xInputStream, true)); - return pStream; -} - xmlDocUniquePtr SwModelTestBase::parseExportInternal(const OUString& url, const OUString& rStreamName) { |