diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-05 09:20:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-05 13:04:54 +0200 |
commit | 5da14ddc04325d25886b9d17aa5ca424c4e1bdfe (patch) | |
tree | ddbd56cf431a3195a1d26eb8617fceb171ef2d75 /sd | |
parent | c9b57b7226de7062b9feaf7706825f6dc2a6fee8 (diff) |
drop unnecessary nDelta of 0 optimization
Change-Id: Idce5a4272314785382fbb7acf078ddb84ff61ebc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137843
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/viewshe2.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sd/source/ui/view/viewshe2.cxx b/sd/source/ui/view/viewshe2.cxx index 8b16124ba44e..a0f2982be152 100644 --- a/sd/source/ui/view/viewshe2.cxx +++ b/sd/source/ui/view/viewshe2.cxx @@ -133,11 +133,6 @@ IMPL_LINK(ViewShell, HScrollHdl, ScrollBar *, pHScroll, void ) */ void ViewShell::VirtHScrollHdl(ScrollBar* pHScroll) { - ::tools::Long nDelta = pHScroll->GetDelta(); - - if (nDelta == 0) - return; - double fX = static_cast<double>(pHScroll->GetThumbPos()) / pHScroll->GetRange().Len(); // scroll all windows of the column |