[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-02-09 22:33:39
Message-ID: 1265754819.999275.2651.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1087985 by khudyakov:

remove init from satellites

 M  +0 -8      satellitecomponent.cpp  
 M  +0 -3      satellitecomponent.h  
 M  +5 -8      satellitecomposite.cpp  
 M  +0 -3      satellitecomposite.h  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/satellitecomponent.cpp #1087984:1087985
@@ -54,14 +54,6 @@
     }
 }
 
-void SatelliteComponent::init() {
-    Q_ASSERT( false &&
-              "This code should never execute and even better exist\n\n"
-              "If program crashed and you see this message it is a bug\n\n"
-              "Sorry for any inconvenience (-:"
-        );
-}
-
 void SatelliteComponent::initSat( const QString &name, SPositionSat *pSat[], int npos ) {
     KStarsData *data = KStarsData::Instance();
     Label = name;
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/satellitecomponent.h #1087984:1087985
@@ -45,9 +45,6 @@
 
     virtual ~SatelliteComponent();
 
-    /* Exists only to make this class constructible. */
-    virtual void init();
-
     /**@short Update the sky positions of this component.
      *
      * This function usually just updates the Horizontal (Azimuth/Altitude)
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/satellitecomposite.cpp #1087984:1087985
@@ -31,14 +31,6 @@
 {
     for ( uint i=0; i<NSTEPS; ++i )
         pSat.append( new SPositionSat );
-}
-
-SatelliteComposite::~SatelliteComposite()
-{
-    qDeleteAll(pSat);
-}
-
-void SatelliteComposite::init() {
     emitProgressText( i18n("Creating Earth satellites" ) );
 
     KStarsData* data = KStarsData::Instance();
@@ -67,6 +59,11 @@
     }
 }
 
+SatelliteComposite::~SatelliteComposite()
+{
+    qDeleteAll(pSat);
+}
+
 void SatelliteComposite::update( KSNumbers * ) {
     KStarsData *data = KStarsData::Instance();
     //Julian Day value for current date and time:
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/satellitecomposite.h #1087984:1087985
@@ -41,9 +41,6 @@
 
     ~SatelliteComposite();
 
-    /** @short Initialize the Satellite composite */
-    virtual void init();
-
     /**@short Update the satellite tracks
      * @param num Pointer to the KSNumbers object
      */
[prev in list] [next in list] [prev in thread] [next in thread] 

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