[Libreoffice-commits] core.git: formula/source
Julien Nabet
serval2412 at yahoo.fr
Sat Mar 21 09:16:39 PDT 2015
formula/source/ui/dlg/funcpage.cxx | 13 -------------
1 file changed, 13 deletions(-)
New commits:
commit 8a6de827f48fba34e325136efdc1018ef9f0b23d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Mar 21 17:15:02 2015 +0100
Since nCategory is unused, Lb2Cat can be removed
Change-Id: If7f3132859216e84729a368a891cd624853e8757
diff --git a/formula/source/ui/dlg/funcpage.cxx b/formula/source/ui/dlg/funcpage.cxx
index e44455e..42de6fc 100644
--- a/formula/source/ui/dlg/funcpage.cxx
+++ b/formula/source/ui/dlg/funcpage.cxx
@@ -62,15 +62,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeFormulaListBox(vcl::Wi
return new FormulaListBox(pParent, WB_BORDER | WB_SORT);
}
-inline sal_uInt16 Lb2Cat( sal_uInt16 nLbPos )
-{
- // Category 0 == LRU, otherwise Categories == LbPos-1
- if ( nLbPos > 0 )
- nLbPos -= 1;
-
- return nLbPos;
-}
-
FuncPage::FuncPage(vcl::Window* pParent,const IFunctionManager* _pFunctionManager):
TabPage(pParent, "FunctionPage", "formula/ui/functionpage.ui"),
m_pFunctionManager(_pFunctionManager)
@@ -115,10 +106,6 @@ void FuncPage::UpdateFunctionList()
{
sal_Int32 nSelPos = m_pLbCategory->GetSelectEntryPos();
const IFunctionCategory* pCategory = static_cast<const IFunctionCategory*>(m_pLbCategory->GetEntryData(nSelPos));
- sal_Int32 nCategory = ( LISTBOX_ENTRY_NOTFOUND != nSelPos )
- ? Lb2Cat( nSelPos ) : 0;
-
- (void)nCategory;
m_pLbFunction->Clear();
m_pLbFunction->SetUpdateMode( false );
More information about the Libreoffice-commits
mailing list