summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-05 09:20:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-05 13:04:54 +0200
commit5da14ddc04325d25886b9d17aa5ca424c4e1bdfe (patch)
treeddbd56cf431a3195a1d26eb8617fceb171ef2d75
parentc9b57b7226de7062b9feaf7706825f6dc2a6fee8 (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>
-rw-r--r--sd/source/ui/view/viewshe2.cxx5
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