1
0
Fork 0

eliminate gcc warning, unused member depth.

This commit is contained in:
torsten 2010-01-02 20:00:06 +00:00 committed by Tim Moore
parent 8da2f1a31b
commit 33ee43dec0

View file

@ -162,7 +162,7 @@ private:
intVec nodes; intVec nodes;
intVec routes; intVec routes;
double distance; double distance;
int depth; // int depth;
intVecIterator currNode; intVecIterator currNode;
intVecIterator currRoute; intVecIterator currRoute;
@ -173,14 +173,14 @@ public:
routes = rts; routes = rts;
distance = dist; distance = dist;
currNode = nodes.begin(); currNode = nodes.begin();
depth = dpth; // depth = dpth;
}; };
FGTaxiRoute& operator= (const FGTaxiRoute &other) { FGTaxiRoute& operator= (const FGTaxiRoute &other) {
nodes = other.nodes; nodes = other.nodes;
routes = other.routes; routes = other.routes;
distance = other.distance; distance = other.distance;
depth = other.depth; // depth = other.depth;
currNode = nodes.begin(); currNode = nodes.begin();
currRoute = routes.begin(); currRoute = routes.begin();
return *this; return *this;
@ -190,7 +190,7 @@ public:
nodes(copy.nodes), nodes(copy.nodes),
routes(copy.routes), routes(copy.routes),
distance(copy.distance), distance(copy.distance),
depth(copy.depth), // depth(copy.depth),
currNode(nodes.begin()), currNode(nodes.begin()),
currRoute(routes.begin()) currRoute(routes.begin())
{}; {};
@ -203,7 +203,7 @@ public:
void first() { currNode = nodes.begin(); currRoute = routes.begin(); }; void first() { currNode = nodes.begin(); currRoute = routes.begin(); };
int size() { return nodes.size(); }; int size() { return nodes.size(); };
int getDepth() { return depth; }; // int getDepth() { return depth; };
}; };
typedef vector<FGTaxiRoute> TaxiRouteVector; typedef vector<FGTaxiRoute> TaxiRouteVector;