From 19875e2b03fa48149ae26a3d9f5c7b185d10b4c4 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 13 Apr 2021 13:41:01 +0100 Subject: [PATCH] Remove redundant code that causes CLang++ warnings --- map65/astro.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/map65/astro.cpp b/map65/astro.cpp index b8c22fa52..8b124bb13 100644 --- a/map65/astro.cpp +++ b/map65/astro.cpp @@ -26,7 +26,6 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid, int fQSO, int nsetftx, int ntxFreq, QString azelDir) { static int ntxFreq0=-99; - static bool astroBusy=false; char cc[300]; double azsun,elsun,azmoon,elmoon,azmoondx,elmoondx; double ramoon,decmoon,dgrd,poloffset,xnr; @@ -44,14 +43,10 @@ void Astro::astroUpdate(QDateTime t, QString mygrid, QString hisgrid, int nfreq=(int)datcom_.fcenter; if(nfreq<10 or nfreq > 50000) nfreq=144; - if(!astroBusy) { - astroBusy=true; - astrosub_(&nyear, &month, &nday, &uth, &nfreq, mygrid.toLatin1(), + astrosub_(&nyear, &month, &nday, &uth, &nfreq, mygrid.toLatin1(), hisgrid.toLatin1(), &azsun, &elsun, &azmoon, &elmoon, &azmoondx, &elmoondx, &ntsky, &ndop, &ndop00,&ramoon, &decmoon, &dgrd, &poloffset, &xnr, 6, 6); - astroBusy=false; - } sprintf(cc, "Az: %6.1f\n"