diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-12-08 18:09:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-12-10 09:28:16 +0000 |
commit | d0b590fe19b45e2248adff22c6fe61a4049a7db8 (patch) | |
tree | 36ff9d9f0a7799595062d70c262395abea2400c5 /l10ntools | |
parent | guard against div by 0 (diff) | |
download | core-d0b590fe19b45e2248adff22c6fe61a4049a7db8.tar.gz core-d0b590fe19b45e2248adff22c6fe61a4049a7db8.zip |
callcatcher: remove unused rtf filter and associated methods
update and remove newly unused code, mostly original rtf filter
Change-Id: I2dd302851ee6fad62d79fbc81cb8a61a861396db
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/inc/export.hxx | 2 | ||||
-rw-r--r-- | l10ntools/source/export2.cxx | 25 |
2 files changed, 0 insertions, 27 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx index af94c17b5c2b..35da1675268c 100644 --- a/l10ntools/inc/export.hxx +++ b/l10ntools/inc/export.hxx @@ -304,7 +304,6 @@ private: public: ParserQueue* pParseQueue; // public ? static rtl::OString sLanguages; // public ? - static rtl::OString sForcedLanguages; // public ? static bool handleArguments(int argc, char * argv[], HandledArgs& o_aHandledArgs); static void writeUsage(const OString& rName, const OString& rFileType); @@ -312,7 +311,6 @@ public: static void InitLanguages( bool bMergeMode = false ); static void InitForcedLanguages( bool bMergeMode = false ); static std::vector<rtl::OString> GetLanguages(); - static std::vector<rtl::OString> GetForcedLanguages(); static void SetLanguages( std::vector<rtl::OString> val ); static void RemoveUTF8ByteOrderMarker( rtl::OString &rString ); diff --git a/l10ntools/source/export2.cxx b/l10ntools/source/export2.cxx index 5ef2231f6d6e..0ef5ca4dfa3c 100644 --- a/l10ntools/source/export2.cxx +++ b/l10ntools/source/export2.cxx @@ -88,7 +88,6 @@ ResData::~ResData() /*****************************************************************************/ rtl::OString Export::sLanguages; -rtl::OString Export::sForcedLanguages; /*****************************************************************************/ bool Export::handleArguments( @@ -204,11 +203,6 @@ std::vector<rtl::OString> Export::GetLanguages(){ /*****************************************************************************/ return aLanguages; } -/*****************************************************************************/ -std::vector<rtl::OString> Export::GetForcedLanguages(){ -/*****************************************************************************/ - return aForcedLanguages; -} std::vector<rtl::OString> Export::aLanguages = std::vector<rtl::OString>(); std::vector<rtl::OString> Export::aForcedLanguages = std::vector<rtl::OString>(); @@ -337,27 +331,8 @@ void Export::InitLanguages( bool bMergeMode ){ } while ( nIndex >= 0 ); - InitForcedLanguages( bMergeMode ); isInitialized = true; } } -/*****************************************************************************/ -void Export::InitForcedLanguages( bool bMergeMode ){ -/*****************************************************************************/ - rtl::OString sTmp; - OStringBoolHashMap aEnvLangs; - - sal_Int32 nIndex = 0; - do - { - rtl::OString aToken = sForcedLanguages.getToken(0, ',', nIndex); - - sTmp = aToken.getToken(0, '=').trim(); - if( bMergeMode && isAllowed( sTmp ) ){} - else if( !( (sTmp[0]=='x' || sTmp[0]=='X') && sTmp[1]=='-' ) ) - aForcedLanguages.push_back( sTmp ); - } - while ( nIndex >= 0 ); -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |