From db4aab0e114df7eda1a53a218de41a38c5bde7f2 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 23 Nov 2012 22:32:49 +0100 Subject: Remove some newly tagged unused methods Change-Id: Ie55dfd19f223df62c091ffc4fdf28789b308a1c7 --- l10ntools/source/helpmerge.cxx | 64 ------------------------------------------ 1 file changed, 64 deletions(-) (limited to 'l10ntools/source/helpmerge.cxx') diff --git a/l10ntools/source/helpmerge.cxx b/l10ntools/source/helpmerge.cxx index 68f745397378..317378544928 100644 --- a/l10ntools/source/helpmerge.cxx +++ b/l10ntools/source/helpmerge.cxx @@ -198,35 +198,6 @@ bool HelpParser::Merge( const rtl::OString &rSDFFile, const rtl::OString &rDesti return hasNoError; } -void HelpParser::parse_languages( std::vector& aLanguages , MergeDataFile& aMergeDataFile ){ - std::vector aTmp; - - Export::InitLanguages( false ); - - if (Export::sLanguages.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("ALL"))) - { - aLanguages = aMergeDataFile.GetLanguages(); - aLanguages.push_back(rtl::OString(RTL_CONSTASCII_STRINGPARAM("en-US"))); - - if( !Export::sForcedLanguages.isEmpty() ) - { - std::vector aFL = Export::GetForcedLanguages(); - std::copy( aFL.begin() , - aFL.end() , - back_inserter( aLanguages ) - ); - std::sort( aLanguages.begin() , aLanguages.end() , std::less< rtl::OString >() ); - std::vector::iterator unique_iter = std::unique( aLanguages.begin() , aLanguages.end() , std::equal_to< rtl::OString >() ); - std::copy( aLanguages.begin() , unique_iter , back_inserter( aTmp ) ); - aLanguages = aTmp; - } - } - else{ - aLanguages = Export::GetLanguages(); - } - -} - bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile , const rtl::OString& sLanguage , rtl::OString const & sPath ) { @@ -257,41 +228,6 @@ bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile return true; } -rtl::OString HelpParser::GetOutpath( const rtl::OString& rPathX , const rtl::OString& sCur , const rtl::OString& rPathY ) -{ - rtl::OString testpath = rPathX; - if (!testpath.endsWithL(RTL_CONSTASCII_STRINGPARAM("/"))) { - testpath += "/"; - } - testpath += sCur; - testpath += "/"; - rtl::OString sRelativePath( rPathY ); - if (sRelativePath.matchL(RTL_CONSTASCII_STRINGPARAM("/"))) { - sRelativePath = sRelativePath.copy(1); - } - testpath += sRelativePath; - testpath += "/"; - return testpath; -} - -void HelpParser::MakeDir(const rtl::OString& rPath) -{ - rtl::OString sTPath(rPath.replaceAll("\\", "/")); - sal_Int32 cnt = helper::countOccurrences(sTPath, '/'); - rtl::OStringBuffer sCreateDir; - for (sal_uInt16 i = 0; i <= cnt; ++i) - { - sCreateDir.append(sTPath.getToken(i , '/')); - sCreateDir.append('/'); -#ifdef WNT - _mkdir( sCreateDir.getStr() ); -#else - mkdir( sCreateDir.getStr() , S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ); -#endif - } -} - - /* ProcessHelp Methode: search for en-US entry and replace it with the current language*/ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const rtl::OString& sCur , ResData *pResData , MergeDataFile& aMergeDataFile ){ -- cgit