[Kstars-devel] KDE/kdeedu/kstars/kstars/tools
Akarsh Simha
akarshsimha at gmail.com
Sat Jul 12 08:46:32 CEST 2008
SVN commit 831213 by asimha:
Removing accidentally duplicated (incorrect) code, possibly duplicated
during the merger of unfrozen and trunk.
This prevents duplicate entries in the list of conjunctions.
CCMAIL: kstars-devel at kde.org
M +0 -24 ksconjunct.cpp
--- trunk/KDE/kdeedu/kstars/kstars/tools/ksconjunct.cpp #831212:831213
@@ -79,30 +79,6 @@
step = step0;
}
- if( Sign != prevSign ) { //all right, we may have just passed a conjunction
- if ( step > step0 ) { //mini-loop to back up and make sure we're close enough
-// kDebug() << "Entering slow loop: " << endl;
- jd -= step;
- step = step0;
- Sign = prevSign;
- while ( jd <= stopJD ) {
- Dist = findDistance(jd, &Object1, &Object2);
- Sign = sgn(Dist.Degrees() - prevDist.Degrees());
-// kDebug() << "Dist = " << Dist.toDMSString() << "; prevDist = " << prevDist.toDMSString() << "; Difference = " << (Dist.Degrees() - prevDist.Degrees());
- if ( Sign != prevSign ) break;
-
- prevDist = Dist;
- prevSign = Sign;
- jd += step;
- }
- }
-
- // kDebug() << "Sign = " << Sign << " and " << "prevSign = " << prevSign << ": Entering findPrecise()\n";
- if(findPrecise(&extremum, &Object1, &Object2, jd, step, prevSign))
- if(extremum.second.radians() < maxSeparation.radians())
- Separations.insert(extremum.first, extremum.second);
- }
-
if( Sign != prevSign && prevSign == -1) { //all right, we may have just passed a conjunction
if ( step > step0 ) { //mini-loop to back up and make sure we're close enough
// kDebug() << "Entering slow loop: " << endl;
More information about the Kstars-devel
mailing list