vcl/source/control/imivctl1.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
New commits: commit 221667db03fcefefc07525fb233316c14326901c Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Mon Aug 12 09:18:44 2024 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Mon Aug 12 16:08:15 2024 +0200 icon choice ctrl: Drop EVENTID_SHOW_CURSOR The code that would have posted an event of that type was dropped in commit 40971354138e14a2aacfa4605ba0c096e000d578 Date: Tue Mar 1 08:30:03 2016 +0200 loplugin:unuseddefaultparam in svtools , so there's no need to keep the handling for an event that's never emitted in place. Change-Id: Iec6bf17e040a44eb1dccabbb1273ae112dedc45a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171746 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx index 0d24e0b25c45..c264f1481306 100644 --- a/vcl/source/control/imivctl1.cxx +++ b/vcl/source/control/imivctl1.cxx @@ -46,8 +46,7 @@ constexpr auto DRAWTEXT_FLAGS_ICON = #define DRAWTEXT_FLAGS_SMALLICON (DrawTextFlags::Left|DrawTextFlags::EndEllipsis|DrawTextFlags::Clip) -#define EVENTID_SHOW_CURSOR (reinterpret_cast<void*>(1)) -#define EVENTID_ADJUST_SCROLLBARS (reinterpret_cast<void*>(2)) +#define EVENTID_ADJUST_SCROLLBARS (reinterpret_cast<void*>(1)) SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl( SvtIconChoiceCtrl* pCurView, @@ -1733,10 +1732,6 @@ IMPL_LINK(SvxIconChoiceCtrl_Impl, UserEventHdl, void*, nId, void ) nUserEventAdjustScrBars = nullptr; AdjustScrollBars(); } - else if( nId == EVENTID_SHOW_CURSOR ) - { - ShowCursor( true ); - } } void SvxIconChoiceCtrl_Impl::CancelUserEvents()