From 309402a82272e7fc2cab75ca65764bf81ce311d6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 17 Jul 2012 08:27:02 +0200 Subject: [PATCH] -Werror,-Wunused-function Change-Id: I100a95d5f84ab61cb26ac39d436cb9f2cb7246e5 --- sd/qa/unit/regression-test.cxx | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/sd/qa/unit/regression-test.cxx b/sd/qa/unit/regression-test.cxx index d9ce42ce2d36..787291b6e44f 100644 --- a/sd/qa/unit/regression-test.cxx +++ b/sd/qa/unit/regression-test.cxx @@ -60,40 +60,6 @@ #include #include -namespace { - -bool compareFiles( const rtl::OUString& aFileNameOne, const rtl::OUString& aFileNameTwo) -{ - rtl::OString aOFileNameOne = rtl::OUStringToOString(aFileNameOne, RTL_TEXTENCODING_UTF8); - std::ifstream aFileOne(aOFileNameOne.getStr()); - rtl::OString aOFileNameTwo = rtl::OUStringToOString(aFileNameTwo, RTL_TEXTENCODING_UTF8); - std::ifstream aFileTwo(aOFileNameTwo.getStr()); - - CPPUNIT_ASSERT_MESSAGE("files not open", aFileOne.is_open() && aFileTwo.is_open()); - - sal_Int32 nLine = 1; - while(!aFileOne.eof() && !aFileTwo.eof()) - { - std::string aLineFileOne; - std::string aLineFileTwo; - - std::getline(aFileOne, aLineFileOne); - std::getline(aFileTwo, aLineFileTwo); - - if( aLineFileOne != aLineFileTwo) - { - rtl::OStringBuffer aErrorMessage("Mismatch between reference file and exported file in line "); - aErrorMessage.append(nLine).append(".\nExpected: "); - aErrorMessage.append(aLineFileOne.c_str()).append("\nFound : ").append(aLineFileTwo.c_str()); - CPPUNIT_ASSERT_MESSAGE(aErrorMessage.getStr(), false); - } - nLine++; - } - return true; -} - -} - /* Implementation of Filters test */ using namespace ::com::sun::star;