[Kstars-devel] branches/kstars/summer/kdeedu/kstars/kstars/skycomponents

Akarsh Simha akarshsimha at gmail.com
Mon Jun 16 00:25:04 CEST 2008


SVN commit 820969 by asimha:

+ Removing unused variables in
StarBlockComponent::loadShallowStarData()

+ Reducing scope of StarComponent::plainStarTemplate to within
StarComponent::loadShallowStarData()

+ Removing TODO comment in StarBlock and leaving plainStarTemplate to
stay at both places.

CCMAIL: kstars-devel at kde.org



 M  +0 -8      starblock.cpp  
 M  +1 -2      starcomponent.cpp  
 M  +0 -1      starcomponent.h  


--- branches/kstars/summer/kdeedu/kstars/kstars/skycomponents/starblock.cpp #820968:820969
@@ -33,14 +33,6 @@
     allocStars( nstars );
 }
 
-// NOTE: This method is deprecated
-//StarBlock::StarBlock( StarBlock *_prev, StarBlock *_next ) {
-//    init( _prev, _next );
-//    allocStars( 100 );              
-//}
-
-// TODO: Keep the plainStarTemplate in one place
-//       Currently, there is also on in StarComponent
 void StarBlock::init() {
     parent = NULL;
     prev = next = NULL;
--- branches/kstars/summer/kdeedu/kstars/kstars/skycomponents/starcomponent.cpp #820968:820969
@@ -356,8 +356,8 @@
     FILE *dataFile, *nameFile;
     bool swapBytes = false;
     BinFileHelper dataReader, nameReader;
-    unsigned long nrecords;
     QString name, gname, visibleName;
+    StarObject plainStarTemplate;
     StarObject *star;
 
     if(starsLoaded)
@@ -391,7 +391,6 @@
     swapBytes = dataReader.getByteSwap();
 
     long int nstars = 0;
-    Trixel expectedTrixelId = -1;
     QTime t;
 
     // TODO : Remove timing code when we are done with all possible optimizations
--- branches/kstars/summer/kdeedu/kstars/kstars/skycomponents/starcomponent.h #820968:820969
@@ -217,7 +217,6 @@
     QVector< StarBlockList *> m_starBlockList;
     starData stardata;
     starName starname;
-    StarObject plainStarTemplate;
 
     /**
      *@class StarComponent::TrixelIterator


More information about the Kstars-devel mailing list