From df134d2d1b935c7b74d2e135c3041f7c25de3c13 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 25 Jun 2017 10:40:56 +0200 Subject: remove unused local vars since commit 95c348afa8f4f17c058c449ded75025175af0e4a loplugin:unusedfields in svx part2 Change-Id: I6d5f3704f4efef0a9fb69623f46a216c509c8302 Reviewed-on: https://gerrit.libreoffice.org/39229 Reviewed-by: Noel Grandin Tested-by: Jenkins Reviewed-by: Jochen Nitschke --- svx/source/svdraw/svdibrow.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx index f3aab1a70f86..ee42d01815d8 100644 --- a/svx/source/svdraw/svdibrow.cxx +++ b/svx/source/svdraw/svdibrow.cxx @@ -446,13 +446,8 @@ void SdrItemBrowserControl::ImpSaveWhich() { sal_uInt16 nWh=GetCurrentWhich(); if (nWh!=0) { - long nPos=GetCurrentPos(); - long nTop=GetTopRow(); - long nBtm=GetTopRow()+GetVisibleRows()+1; nLastWhich=nWh; - nLastWhichOfs=nPos-nTop; - if (nTop<0) nTop=0; - if (nBtm>=(long)aList.size()) nBtm=aList.size()-1; + nLastWhichOfs=GetCurrentPos()-GetTopRow(); } } -- cgit