[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/skycomponents
From:       Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date:       2010-06-28 17:18:14
Message-ID: 20100628171814.61F92AC8E1 () svn ! kde ! org
[Download RAW message or body]

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;
             }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic