sc/inc/global.hxx              |    1 -
 sc/source/core/data/global.cxx |   11 -----------
 2 files changed, 12 deletions(-)

New commits:
commit 8010f473c77b9f384a7067f487bc24469f8c0cd3
Author: Gabor Kelemen <kelem...@ubuntu.com>
Date:   Sat May 12 22:24:39 2018 +0200

    Drop newly unused ScGlobal::GetRscString
    
    Change-Id: I744b069542007d7ed965ef229a263c09a27181ce
    Reviewed-on: https://gerrit.libreoffice.org/54187
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index fdb1e5e37467..912164234597 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -566,7 +566,6 @@ public:
     SC_DLLPUBLIC static ScUnoAddInCollection* GetAddInCollection();
     SC_DLLPUBLIC static ScUserList*         GetUserList();
     static void                 SetUserList( const ScUserList* pNewList );
-    SC_DLLPUBLIC static const OUString&       GetRscString(const char* pResId);
     /// Open the specified URL.
     static void                 OpenURL(const OUString& rURL, const OUString& 
rTarget);
     SC_DLLPUBLIC static OUString            GetAbsDocName( const OUString& 
rFileName,
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 432b4ae2d468..9e4ce14e3ddf 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -86,7 +86,6 @@ ScAutoFormat*   ScGlobal::pAutoFormat = nullptr;
 LegacyFuncCollection* ScGlobal::pLegacyFuncCollection = nullptr;
 ScUnoAddInCollection* ScGlobal::pAddInCollection = nullptr;
 ScUserList*     ScGlobal::pUserList = nullptr;
-std::map<const char*, OUString>* ScGlobal::pRscString = nullptr;
 LanguageType    ScGlobal::eLnge = LANGUAGE_SYSTEM;
 css::lang::Locale*     ScGlobal::pLocale = nullptr;
 SvtSysLocale*   ScGlobal::pSysLocale = nullptr;
@@ -310,13 +309,6 @@ void ScGlobal::SetUserList( const ScUserList* pNewList )
     }
 }
 
-const OUString& ScGlobal::GetRscString(const char* pResId)
-{
-    if (pRscString->find(pResId) == pRscString->end())
-        (*pRscString)[pResId] = ScResId(pResId);
-    return (*pRscString)[pResId];
-}
-
 OUString ScGlobal::GetErrorString(FormulaError nErr)
 {
     const char* pErrNumber;
@@ -462,8 +454,6 @@ void ScGlobal::Init()
     pCharClass = pSysLocale->GetCharClassPtr();
     pLocaleData = pSysLocale->GetLocaleDataPtr();
 
-    pRscString = new std::map<const char*, OUString>;
-
     pEmptyBrushItem = new SvxBrushItem( COL_TRANSPARENT, ATTR_BACKGROUND );
     pButtonBrushItem = new SvxBrushItem( Color(), ATTR_BACKGROUND );
     pEmbeddedBrushItem = new SvxBrushItem( COL_LIGHTCYAN, ATTR_BACKGROUND );
@@ -551,7 +541,6 @@ void ScGlobal::Clear()
     DELETEZ(pLegacyFuncCollection);
     DELETEZ(pAddInCollection);
     DELETEZ(pUserList);
-    DELETEZ(pRscString);
     DELETEZ(pStarCalcFunctionList); // Destroy before ResMgr!
     DELETEZ(pStarCalcFunctionMgr);
     ScParameterClassification::Exit();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to