diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-04 09:33:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-05 07:51:48 +0100 |
commit | 0adbc69c81cc287386b31b25b2dc89780933e2b1 (patch) | |
tree | 13517563f4ebb0524071a5403cf4d961e05c15da /vcl/source/control | |
parent | 6ba25b96e6187931c0651f099413dbf1e2a7ab97 (diff) |
remove unused VclEventId enum values
Change-Id: I7887a7de37a024f2e97dbd20a27a1aa3fdfcfbfa
Reviewed-on: https://gerrit.libreoffice.org/64559
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/listbox.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx index e109e135d0d4..3a048a3fedb8 100644 --- a/vcl/source/control/listbox.cxx +++ b/vcl/source/control/listbox.cxx @@ -946,7 +946,6 @@ void ListBox::SetNoSelection() mpImplWin->SetImage( aImage ); mpImplWin->Invalidate(); } - CallEventListeners(VclEventId::ListboxStateUpdate); } sal_Int32 ListBox::InsertEntry( const OUString& rStr, sal_Int32 nPos ) @@ -1066,11 +1065,9 @@ void ListBox::SelectEntryPos( sal_Int32 nPos, bool bSelect ) if ( 0 <= nPos && nPos < mpImplLB->GetEntryList()->GetEntryCount() ) { - sal_Int32 oldSelectCount = GetSelectedEntryCount(), newSelectCount = 0, nCurrentPos = mpImplLB->GetCurrentPos(); + sal_Int32 newSelectCount = 0, nCurrentPos = mpImplLB->GetCurrentPos(); mpImplLB->SelectEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount(), bSelect ); newSelectCount = GetSelectedEntryCount(); - if (oldSelectCount == 0 && newSelectCount > 0) - CallEventListeners(VclEventId::ListboxStateUpdate); //Only when bSelect == true, send both Selection & Focus events if (nCurrentPos != nPos && bSelect) { |