[Libreoffice-commits] core.git: sc/inc sc/source
Caolán McNamara
caolanm at redhat.com
Sun Jan 31 03:44:50 PST 2016
sc/inc/scmod.hxx | 1 -
sc/source/ui/app/scmod.cxx | 19 -------------------
sc/source/ui/unoobj/appluno.cxx | 2 --
sc/source/ui/view/viewfunc.cxx | 1 -
4 files changed, 23 deletions(-)
New commits:
commit 4b970fb14052796f85c9c2fb443222fc3a292b5a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jan 29 15:15:55 2016 +0000
RecentFunctionsChanged doesn't do anything since...
function list was moved to sidebar
Change-Id: Icf97e0ec93b2080941f6dcd4d99d30437eac28d8
Reviewed-on: https://gerrit.libreoffice.org/21954
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx
index 69ee32e..c80b0ba 100644
--- a/sc/inc/scmod.hxx
+++ b/sc/inc/scmod.hxx
@@ -182,7 +182,6 @@ public:
SC_DLLPUBLIC void SetInputOptions ( const ScInputOptions& rOpt );
void SetPrintOptions ( const ScPrintOptions& rOpt );
void InsertEntryToLRUList(sal_uInt16 nFIndex);
- static void RecentFunctionsChanged();
static void GetSpellSettings( sal_uInt16& rDefLang, sal_uInt16& rCjkLang, sal_uInt16& rCtlLang,
bool& rAutoSpell );
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 162e355..b5ca139 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -759,25 +759,6 @@ void ScModule::InsertEntryToLRUList(sal_uInt16 nFIndex)
ScAppOptions aNewOpts(rAppOpt); // Let App know
aNewOpts.SetLRUFuncList(aIdxList, n);
SetAppOptions(aNewOpts);
-
- RecentFunctionsChanged();
- }
-}
-
-void ScModule::RecentFunctionsChanged()
-{
- // update function list window
- sal_uInt16 nFuncListID = ScFunctionChildWindow::GetChildWindowId();
-
- //! notify all views
- SfxViewFrame* pViewFrm = SfxViewFrame::Current();
- if (pViewFrm && pViewFrm->HasChildWindow(nFuncListID))
- {
- ScFunctionChildWindow* pWnd = static_cast<ScFunctionChildWindow*>(pViewFrm->GetChildWindow(nFuncListID));
- if (!pWnd)
- return;
- ScFunctionDockWin* pFuncList = static_cast<ScFunctionDockWin*>(pWnd->GetWindow());
- pFuncList->InitLRUList();
}
}
diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx
index b597272..a77fdf6 100644
--- a/sc/source/ui/unoobj/appluno.cxx
+++ b/sc/source/ui/unoobj/appluno.cxx
@@ -507,8 +507,6 @@ void SAL_CALL ScRecentFunctionsObj::setRecentFunctionIds(
ScAppOptions aNewOpts(pScMod->GetAppOptions());
aNewOpts.SetLRUFuncList(pFuncs.get(), nCount);
pScMod->SetAppOptions(aNewOpts);
-
- ScModule::RecentFunctionsChanged(); // update function list child window
}
sal_Int32 SAL_CALL ScRecentFunctionsObj::getMaxRecentFunctions() throw(uno::RuntimeException, std::exception)
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 57b9c3e..c7bcfd4 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -498,7 +498,6 @@ void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab,
if ( bOptChanged )
{
pScMod->SetAppOptions(aAppOpt);
- ScModule::RecentFunctionsChanged();
}
}
More information about the Libreoffice-commits
mailing list