From kde-commits Mon Jun 28 17:18:14 2010 From: Alexey Khudyakov Date: Mon, 28 Jun 2010 17:18:14 +0000 To: kde-commits Subject: KDE/kdeedu/kstars/kstars/skycomponents Message-Id: <20100628171814.61F92AC8E1 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=127774499123111 SVN commit 1143785 by khudyakov: Remove unused variable M +2 -5 linelistindex.cpp --- trunk/KDE/kdeedu/kstars/kstars/skycomponents/linelistindex.cpp #1143784:1143785 @@ -178,8 +178,8 @@ UpdateID updateID = KStarsData::Instance()->updateID(); MeshIterator region( skyMesh(), drawBuffer() ); - while ( region.hasNext() ) { + while ( region.hasNext() ) { LineListList* lineListList = m_lineIndex->value( region.next() ); if ( lineListList == 0 ) continue; @@ -196,8 +196,7 @@ bool isVisibleLast; SkyList* points = lineList->points(); - SkyPoint* pLast = points->first(); - QPointF oLast = map->toScreen( pLast, true, &isVisibleLast ); + QPointF oLast = map->toScreen( points->first(), true, &isVisibleLast ); QPointF oThis, oThis2; for ( int j = 1 ; j < points->size() ; j++ ) { @@ -212,8 +211,6 @@ if( isVisible || isVisibleLast ) psky.drawLine( oLast, oThis ); } - - pLast = pThis; oLast = oThis2; isVisibleLast = isVisible; }