diff --git a/drivers/ccd/guide_simulator.cpp b/drivers/ccd/guide_simulator.cpp index 70fc6e7dcd..0b8ca22877 100644 --- a/drivers/ccd/guide_simulator.cpp +++ b/drivers/ccd/guide_simulator.cpp @@ -662,8 +662,6 @@ int GuideSim::DrawCcdFrame(INDI::CCDChip * targetChip) if (pp != nullptr) { char line[256]; - int stars = 0; - int lines = 0; while (fgets(line, 256, pp) != nullptr) { @@ -685,10 +683,6 @@ int GuideSim::DrawCcdFrame(INDI::CCDChip * targetChip) &band, &c, plate, ob, &dist, &dir); if (rc == 12) { - lines++; - //if(c==0) { - stars++; - // Convert the ra/dec to standard co-ordinates double sx; // standard co-ords double sy; // @@ -883,14 +877,8 @@ int GuideSim::DrawImageStar(INDI::CCDChip * targetChip, float mag, float x, floa // scale up linearly for exposure time flux = flux * exposure_time; - float qx; - // we need a box size that gives a radius at least 3 times fwhm - qx = seeing / ImageScalex; - qx = qx * 3; - //boxsizex = (int)qx; - //boxsizex++; - qx = seeing / ImageScaley; - qx = qx * 3; + auto qx = seeing / ImageScaley; + qx = qx * 3; boxsizey = static_cast(qx); boxsizey++;