[Libreoffice-commits] .: sw/qa
Caolán McNamara
caolan at kemper.freedesktop.org
Tue Jul 5 07:30:28 PDT 2011
sw/qa/core/filters-test.cxx | 19 -------------------
1 file changed, 19 deletions(-)
New commits:
commit d4e9f2bcb649f9d78eab02d7187927fd242e9a8e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jul 5 14:52:35 2011 +0100
testLoad unused
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index 5153aad..9ace6d6 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -83,10 +83,6 @@ public:
void recursiveScan(const rtl::OUString &rFilter, const rtl::OUString &rURL, const rtl::OUString &rUserData, int nExpected);
bool load(const rtl::OUString &rFilter, const rtl::OUString &rURL, const rtl::OUString &rUserData);
- bool testLoad(const rtl::OUString &rFilter,
- const rtl::OUString &rUserData,
- const rtl::OUString &rURL);
-
/**
* Ensure CVEs remain unbroken
*/
@@ -164,21 +160,6 @@ void FiltersTest::recursiveScan(const rtl::OUString &rFilter, const rtl::OUStrin
CPPUNIT_ASSERT(osl::FileBase::E_None == aDir.close());
}
-bool FiltersTest::testLoad(const rtl::OUString &rFilter,
- const rtl::OUString &rUserData,
- const rtl::OUString &rURL)
-{
- SfxFilter aFilter(
- rFilter,
- rtl::OUString(), 0, 0, rtl::OUString(), 0, rtl::OUString(),
- rUserData, rtl::OUString() );
-
- SwDocShellRef xDocShRef = new SwDocShell;
- SfxMedium aSrcMed(rURL, STREAM_STD_READ, true);
- aSrcMed.SetFilter(&aFilter);
- return xDocShRef->DoLoad(&aSrcMed);
-}
-
void FiltersTest::testCVEs()
{
recursiveScan(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Staroffice XML (Writer)")), m_aSrcRoot + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/clone/writer/sw/qa/core/data/xml/pass")), rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CXML")), true);
More information about the Libreoffice-commits
mailing list