From 7ee64f9994acddafc1252eb74a74213c015b0f6f Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sun, 21 Feb 2021 23:15:40 -0600 Subject: [PATCH] Maintenance: AIAircraft Remove dead code --- src/AIModel/AIAircraft.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/AIModel/AIAircraft.cxx b/src/AIModel/AIAircraft.cxx index 9b9dd7a3d..5f9f75067 100644 --- a/src/AIModel/AIAircraft.cxx +++ b/src/AIModel/AIAircraft.cxx @@ -1021,9 +1021,6 @@ void FGAIAircraft::updateHeading(double dt) { if (headingDiff > 180) headingDiff = fabs(headingDiff - 360); - double sum = hdg + headingDiff; - if (sum > 360.0) - sum -= 360.0; groundTargetSpeed = tgt_speed; // * cos(headingDiff * SG_DEGREES_TO_RADIANS);