sd/source/ui/view/viewshe2.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit 5da14ddc04325d25886b9d17aa5ca424c4e1bdfe
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Aug 5 09:20:02 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Aug 5 13:04:54 2022 +0200

    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 <caol...@redhat.com>

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

Reply via email to