summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-03-21 17:15:02 +0100
committerJulien Nabet <serval2412@yahoo.fr>2015-03-21 17:15:45 +0100
commit8a6de827f48fba34e325136efdc1018ef9f0b23d (patch)
tree14402ee5681a949c31509e1fd9e100028d88f538 /formula
parent3bff04431fafc0725c7c537b93dfec50c2c1bc18 (diff)
Since nCategory is unused, Lb2Cat can be removed
Change-Id: If7f3132859216e84729a368a891cd624853e8757
Diffstat (limited to 'formula')
-rw-r--r--formula/source/ui/dlg/funcpage.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/formula/source/ui/dlg/funcpage.cxx b/formula/source/ui/dlg/funcpage.cxx
index e44455e41424..42de6fcccff4 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 );