From 7b7ce5bb57931f23fe3db413cbaa40270de5f2e4 Mon Sep 17 00:00:00 2001 From: "David F. Skoll" Date: Fri, 8 Mar 2013 10:27:38 -0500 Subject: [PATCH] Remove dead code and dead variable. --- src/funcs.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/funcs.c b/src/funcs.c index cc67b1ba..e5255c76 100644 --- a/src/funcs.c +++ b/src/funcs.c @@ -1858,7 +1858,6 @@ static int SunStuff(int rise, double cosz, int jul) int dusk_or_dawn; int year, mon, day; int jan0; - double jan0d; double M, L, tanA, sinDelta, cosDelta, a, a_hr, cosH, t, H, T; double latitude, longdeg, UT, local; @@ -1881,7 +1880,6 @@ static int SunStuff(int rise, double cosz, int jul) FromJulian(jul, &year, &mon, &day); jan0 = jul - Julian(year, 0, 1); - jan0d = (double) jan0; dusk_or_dawn = rise; if (rise > 1) @@ -1891,10 +1889,8 @@ static int SunStuff(int rise, double cosz, int jul) t = (double) jul; if (rise) { t += (6.0 + longdeg/15.0) / 24.0; - jan0d += (6.0 + longdeg/15.0) / 24.0; } else { t += (18.0 + longdeg/15.0) / 24.0; - jan0d += (18.0 + longdeg/15.0) / 24.0; } /* Mean anomaly of sun starting from 1 Jan 1990 */