summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-06-25 10:40:56 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2017-06-25 12:47:25 +0200
commitdf134d2d1b935c7b74d2e135c3041f7c25de3c13 (patch)
treeba8c42ba4593cbc8281282f54d7b576b6b18f96f /svx
parent609c0d268ff52c0566ad77dc54de2eeb4d5ef4f8 (diff)
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 <noel.grandin@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdibrow.cxx7
1 files changed, 1 insertions, 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();
}
}