[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bkstars=5D_kstars/tools=3A_Unused_variable?=
From: Khudyakov Alexey <alexey.skladnoy () gmail ! com>
Date: 2011-05-07 18:58:59
Message-ID: 20110507185859.A98A4A60AE () git ! kde ! org
[Download RAW message or body]
Git commit 7a6ecfe4b2094b9443ec6e4cdf5f86ce4951ccc3 by Khudyakov Alexey.
Committed on 07/05/2011 at 20:44.
Pushed by khudyakov into branch 'master'.
Unused variable
M +1 -4 kstars/tools/modcalcvizequinox.cpp
http://commits.kde.org/kstars/7a6ecfe4b2094b9443ec6e4cdf5f86ce4951ccc3
diff --git a/kstars/tools/modcalcvizequinox.cpp b/kstars/tools/modcalcvizequinox.cpp
index 5ee1ca1..bdfcac4 100644
--- a/kstars/tools/modcalcvizequinox.cpp
+++ b/kstars/tools/modcalcvizequinox.cpp
@@ -280,7 +280,7 @@ KStarsDateTime modCalcEquinox::findSolstice( int year, bool Summer ) {
//Start at June 16th, which will always be approaching the solstice
long double jd1,jd2,jd3,jd4;
- double y1(0.0),y2(0.0),y3(0.0), y4(0.0);
+ double y2(0.0),y3(0.0), y4(0.0);
int month = 6;
if ( ! Summer ) month = 12;
@@ -297,7 +297,6 @@ KStarsDateTime modCalcEquinox::findSolstice( int year, bool Summer ) {
jd3 += 1.0;
num.updateValues( jd3 );
Sun.findPosition( &num );
- y1 = y2;
y2 = y3;
Sun.findPosition( &num );
y3 = Sun.dec().Degrees();
@@ -324,7 +323,6 @@ KStarsDateTime modCalcEquinox::findSolstice( int year, bool Summer ) {
if ( y4*sgn > y2*sgn ) { //make jd4 the new center
if ( jd4 > jd2 ) {
jd1 = jd2;
- y1 = y2;
jd2 = jd4;
y2 = y4;
} else {
@@ -339,7 +337,6 @@ KStarsDateTime modCalcEquinox::findSolstice( int year, bool Summer ) {
y3 = y4;
} else {
jd1 = jd4;
- y1 = y4;
}
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic