Kaydet (Commit) 8010f473 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Julien Nabet

Drop newly unused ScGlobal::GetRscString

Change-Id: I744b069542007d7ed965ef229a263c09a27181ce
Reviewed-on: https://gerrit.libreoffice.org/54187Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 439f17c5
......@@ -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,
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment