From 7430dfe2a4a3b13ffa248bf14a3a2ca87993f48d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 11 Sep 2018 09:39:03 +0200 Subject: loplugin:unusedmethods Change-Id: I34009aabf0befb346470b5c0d96ad8fc476b7c4e Reviewed-on: https://gerrit.libreoffice.org/60300 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svtools/source/control/ctrlbox.cxx | 7 ------- svtools/source/control/valueset.cxx | 13 ------------- 2 files changed, 20 deletions(-) (limited to 'svtools/source') diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 162216ae1cbf..1a10694313bb 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -528,13 +528,6 @@ sal_Int32 LineListBox::GetStylePos( sal_Int32 nListPos, long nWidth ) return nPos; } -void LineListBox::SelectEntry( SvxBorderLineStyle nStyle, bool bSelect ) -{ - sal_Int32 nPos = GetEntryPos( nStyle ); - if ( nPos != LISTBOX_ENTRY_NOTFOUND ) - ListBox::SelectEntryPos( nPos, bSelect ); -} - void LineListBox::InsertEntry( const BorderWidthImpl& rWidthImpl, SvxBorderLineStyle nStyle, long nMinWidth, ColorFunc pColor1Fn, ColorFunc pColor2Fn, ColorDistFunc pColorDistFn ) diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index f66bbaca742b..b3d62ef1467d 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -1725,19 +1725,6 @@ void ValueSet::SetItemWidth( long nNewItemWidth ) } } -//method to set accessible when the style is user draw. -void ValueSet::InsertItem( sal_uInt16 nItemId, const OUString& rText, size_t nPos ) -{ - DBG_ASSERT( nItemId, "ValueSet::InsertItem(): ItemId == 0" ); - DBG_ASSERT( GetItemPos( nItemId ) == VALUESET_ITEM_NOTFOUND, - "ValueSet::InsertItem(): ItemId already exists" ); - ValueSetItem* pItem = new ValueSetItem( *this ); - pItem->mnId = nItemId; - pItem->meType = VALUESETITEM_USERDRAW; - pItem->maText = rText; - ImplInsertItem( pItem, nPos ); -} - void ValueSet::SetItemHeight( long nNewItemHeight ) { if ( mnUserItemHeight != nNewItemHeight ) -- cgit