From: jmt Date: Tue, 9 Jun 2009 20:16:32 +0000 (+0000) Subject: Remove some remaining non-route-related uses of SGWayPoint. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a29e5ce666619a2c913524d6f0e4b0fff6079f36;p=flightgear.git Remove some remaining non-route-related uses of SGWayPoint. --- diff --git a/src/Airports/groundnetwork.hxx b/src/Airports/groundnetwork.hxx index e602f9094..f1a7093a7 100644 --- a/src/Airports/groundnetwork.hxx +++ b/src/Airports/groundnetwork.hxx @@ -227,7 +227,6 @@ private: TaxiRouteVector routes; TrafficVector activeTraffic; TrafficVectorIterator currTraffic; - SGWayPoint destination; bool foundRoute; double totalDistance, maxDistance; diff --git a/src/Navaids/awynet.cxx b/src/Navaids/awynet.cxx index 47b30ffd6..32e08ac03 100755 --- a/src/Navaids/awynet.cxx +++ b/src/Navaids/awynet.cxx @@ -315,22 +315,11 @@ void FGAirwayNetwork::load(SGPath path) double minDist = HUGE_VAL; double distsqrt, lat2, lon2; int index; - SGWayPoint first (lon, - lat, - 0); //cerr << "Lat " << lat << " lon " << lon << endl; for (FGNodeVectorIterator itr = nodes.begin(); itr != nodes.end(); itr++) { - //double course; - //if ((fabs(lat - ((*itr)->getLatitude())) < 0.001) && - // (fabs(lon - ((*itr)->getLongitude()) < 0.001))) - //cerr << "Warning: nodes are near" << endl; - //SGWayPoint second ((*itr)->getLongitude(), - // (*itr)->getLatitude(), - // 0); - //first.CourseAndDistance(second, &course, &dist); lat2 = (*itr)->getLatitude(); lon2 = (*itr)->getLongitude(); // Note: This equation should adjust for decreasing distance per longitude