Kaydet (Commit) 8a6de827 authored tarafından Julien Nabet's avatar Julien Nabet

Since nCategory is unused, Lb2Cat can be removed

Change-Id: If7f3132859216e84729a368a891cd624853e8757
üst 3bff0443
......@@ -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 );
......
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