Remove some remaining non-route-related uses of SGWayPoint.
This commit is contained in:
parent
52bac46535
commit
a29e5ce666
2 changed files with 0 additions and 12 deletions
|
@ -227,7 +227,6 @@ private:
|
|||
TaxiRouteVector routes;
|
||||
TrafficVector activeTraffic;
|
||||
TrafficVectorIterator currTraffic;
|
||||
SGWayPoint destination;
|
||||
|
||||
bool foundRoute;
|
||||
double totalDistance, maxDistance;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue