diff options
-rw-r--r-- | sc/inc/global.hxx | 1 | ||||
-rw-r--r-- | sc/source/core/data/global.cxx | 11 |
2 files changed, 0 insertions, 12 deletions
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(); |