diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-30 14:49:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-30 20:40:08 +0100 |
commit | a91855165dc7c119166b05c038d238f59c8c1281 (patch) | |
tree | 54c2dc971a098d8a2d530a887889996b3deed3b3 /svtools/source/control/valueset.cxx | |
parent | 4aa1d8a2d56028c0b08c832dcd5f0adf3f72e38f (diff) |
loplugin:unusedmethods
Change-Id: Icab9a4789b0bb9187ad5393a2b8578fc4c5e401f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87736
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/control/valueset.cxx')
-rw-r--r-- | svtools/source/control/valueset.cxx | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index dce387faf942..e6c39c91e54c 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -1496,15 +1496,6 @@ void ValueSet::Select() maSelectHdl.Call( this ); } -void ValueSet::InsertItem( sal_uInt16 nItemId, const Image& rImage ) -{ - std::unique_ptr<ValueSetItem> pItem(new ValueSetItem( *this )); - pItem->mnId = nItemId; - pItem->meType = VALUESETITEM_IMAGE; - pItem->maImage = rImage; - ImplInsertItem( std::move(pItem), VALUESET_APPEND ); -} - void ValueSet::InsertItem( sal_uInt16 nItemId, const Image& rImage, const OUString& rText, size_t nPos, bool bShowLegend ) @@ -1657,11 +1648,6 @@ tools::Rectangle ValueSet::GetItemRect( sal_uInt16 nItemId ) const return tools::Rectangle(); } -void ValueSet::EnableFullItemMode( bool bFullMode ) -{ - mbFullMode = bFullMode; -} - void ValueSet::SetColCount( sal_uInt16 nNewCols ) { if ( mnUserCols != nNewCols ) @@ -1853,26 +1839,6 @@ Image ValueSet::GetItemImage( sal_uInt16 nItemId ) const return Image(); } -void ValueSet::SetItemColor( sal_uInt16 nItemId, const Color& rColor ) -{ - size_t nPos = GetItemPos( nItemId ); - - if ( nPos == VALUESET_ITEM_NOTFOUND ) - return; - - ValueSetItem* pItem = mItemList[nPos].get(); - pItem->meType = VALUESETITEM_COLOR; - pItem->maColor = rColor; - - if ( !mbFormat && IsReallyVisible() && IsUpdateMode() ) - { - const tools::Rectangle aRect = ImplGetItemRect(nPos); - Invalidate( aRect ); - } - else - mbFormat = true; -} - Color ValueSet::GetItemColor( sal_uInt16 nItemId ) const { size_t nPos = GetItemPos( nItemId ); @@ -2113,11 +2079,6 @@ long ValueSet::GetScrollWidth() const return 0; } -void ValueSet::SetHighlightHdl( const Link<ValueSet*,void>& rLink ) -{ - maHighlightHdl = rLink; -} - Size ValueSet::GetLargestItemSize() { Size aLargestItem; |