[Libreoffice-commits] core.git: i18nlangtag/source

Eike Rathke erack at redhat.com
Thu Sep 19 11:17:45 PDT 2013


 i18nlangtag/source/languagetag/languagetag.cxx |   38 -------------------------
 1 file changed, 38 deletions(-)

New commits:
commit 2aefb9eaed6e17cb023891f1826e58f53643e894
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Sep 19 20:16:50 2013 +0200

    unused LanguageTagImpl::resetVars()
    
    Change-Id: Iaf806d78b6d49b9bc599ab61ebc8fa1ced84fcf9

diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index 9482018..aae8370 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -289,8 +289,6 @@ private:
     OUString            getRegionFromLangtag();
     OUString            getVariantsFromLangtag();
 
-    void                resetVars();
-
     /** Obtain Language, Script, Country and Variants via simpleExtract() and
         assign them to the cached variables if successful.
 
@@ -419,42 +417,6 @@ LanguageTagImpl::~LanguageTagImpl()
 }
 
 
-void LanguageTagImpl::resetVars()
-{
-    if (mpImplLangtag)
-    {
-        lt_tag_unref( mpImplLangtag);
-        mpImplLangtag = NULL;
-        theDataRef::get().decRef();
-    }
-
-    maLocale            = lang::Locale();
-    if (!maBcp47.isEmpty())
-        maBcp47         = OUString();
-    if (!maCachedLanguage.isEmpty())
-        maCachedLanguage= OUString();
-    if (!maCachedScript.isEmpty())
-        maCachedScript  = OUString();
-    if (!maCachedCountry.isEmpty())
-        maCachedCountry = OUString();
-    if (!maCachedVariants.isEmpty())
-        maCachedVariants = OUString();
-    mnLangID            = LANGUAGE_DONTKNOW;
-    meIsValid           = DECISION_DONTKNOW;
-    meIsIsoLocale       = DECISION_DONTKNOW;
-    meIsIsoODF          = DECISION_DONTKNOW;
-    meIsLiblangtagNeeded= DECISION_DONTKNOW;
-    mbSystemLocale      = true;
-    mbInitializedBcp47  = false;
-    mbInitializedLocale = false;
-    mbInitializedLangID = false;
-    mbCachedLanguage    = false;
-    mbCachedScript      = false;
-    mbCachedCountry     = false;
-    mbCachedVariants    = false;
-}
-
-
 LanguageTag::LanguageTag( const OUString & rBcp47LanguageTag, bool bCanonicalize )
     :
         maBcp47( rBcp47LanguageTag),


More information about the Libreoffice-commits mailing list