From 5b4d218b35c57d9a82bcf1f15d6781e2a7430ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 28 Jan 2017 20:38:49 +0000 Subject: [PATCH] ofz: cluster of unused variables -> div by zero Change-Id: Ic3ca3228b112301217f0eb239899c775de52975e --- filter/source/graphicfilter/ipict/ipict.cxx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/filter/source/graphicfilter/ipict/ipict.cxx b/filter/source/graphicfilter/ipict/ipict.cxx index 916258c344c2..d948d50ac399 100644 --- a/filter/source/graphicfilter/ipict/ipict.cxx +++ b/filter/source/graphicfilter/ipict/ipict.cxx @@ -1882,7 +1882,7 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile ) try { sal_uInt16 nOpcode; sal_uInt8 nOneByteOpcode; - sal_uLong nSize, nPercent, nLastPercent; + sal_uLong nSize; pPict = &rStreamPict; nOrigPos = pPict->Tell(); @@ -1908,10 +1908,6 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile ) pPict->SetEndian(SvStreamEndian::BIG); - sal_uInt64 const nStartPos = pPict->Tell(); - sal_uInt64 const nRemaining = pPict->remainingSize(); - nLastPercent=0; - ReadHeader(); aPenPosition=Point(-aBoundingRect.Left(),-aBoundingRect.Top()); @@ -1921,11 +1917,6 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile ) for (;;) { - nPercent = (nPos-nStartPos) * 100 / nRemaining; - if (nLastPercent+4<=nPercent) { - nLastPercent=nPercent; - } - if (IsVersion2 ) pPict->ReadUInt16( nOpcode ); else