diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-14 13:19:22 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-14 21:57:20 +0200 |
commit | c37077578deffb79405330967191185967e90b98 (patch) | |
tree | 9cd983a39a251e22ba63b789c95b07801ceb0238 /svtools/source | |
parent | 509c706aa07440a573f0e0c44499b82cde068ad2 (diff) |
loplugin:unusedfields
Change-Id: I7d9966d11f8272034523d9804ecf76e119552780
Reviewed-on: https://gerrit.libreoffice.org/55796
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/valueacc.cxx | 1 | ||||
-rw-r--r-- | svtools/source/control/valueset.cxx | 12 |
2 files changed, 0 insertions, 13 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx index 1d7f1ce40018..656289c268ec 100644 --- a/svtools/source/control/valueacc.cxx +++ b/svtools/source/control/valueacc.cxx @@ -1813,7 +1813,6 @@ void SAL_CALL SvtValueSetAcc::selectAccessibleChild( sal_Int32 nChildIndex ) throw lang::IndexOutOfBoundsException(); mpParent->SelectItem( pItem->mnId ); - mpParent->Select (); } diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index a3b1f5e0b624..457ffaba83cb 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -2354,11 +2354,6 @@ void SvtValueSet::ImplDeleteItems() mItemList.clear(); } -void SvtValueSet::Select() -{ - maSelectHdl.Call( this ); -} - size_t SvtValueSet::ImplGetItem( const Point& rPos ) const { if (!mbHasVisibleItems) @@ -2603,7 +2598,6 @@ bool SvtValueSet::KeyInput( const KeyEvent& rKeyEvent ) case KEY_RETURN: if (GetStyle() & WB_NO_DIRECTSELECT) { - Select(); break; } SAL_FALLTHROUGH; @@ -2624,11 +2618,6 @@ bool SvtValueSet::KeyInput( const KeyEvent& rKeyEvent ) if ( nItemId != mnSelItemId ) { SelectItem( nItemId ); - if (!(GetStyle() & WB_NO_DIRECTSELECT)) - { - // select only if WB_NO_DIRECTSELECT is not set - Select(); - } } return true; @@ -2646,7 +2635,6 @@ void SvtValueSet::MouseButtonDown( const MouseEvent& rMouseEvent ) SelectItem( pItem->mnId ); if (!(GetStyle() & WB_NOPOINTERFOCUS)) GrabFocus(); - Select(); } else if ( rMouseEvent.GetClicks() == 2 ) maDoubleClickHdl.Call( this ); |