1
0
Fork 0

Fix some warnings identified by Clang

_ unused private members. Removed in most cases, commented
out in a couple of cases where it feels as if the code might be used in the future.
This commit is contained in:
James Turner 2013-11-16 09:41:33 +00:00
parent 2bff8d2220
commit ea822a99e1
6 changed files with 11 additions and 14 deletions

View file

@ -104,14 +104,11 @@ private:
double dist; // the distance of the eyepoint from the flols
double angle;
int source; // the flols light which is visible at the moment
bool wave_off_lights;
bool in_to_wind;
// these are for maneuvering the carrier
SGGeod mOpBoxPos;
double wind_speed_from_north_kts ;
double wind_speed_from_east_kts ;
double wind_speed_kts; //true wind speed
double wind_from_deg; //true wind direction
double rel_wind;

View file

@ -115,10 +115,6 @@ private:
submodel_vector_type subsubmodels;
submodel_vector_iterator submodel_iterator, subsubmodel_iterator;
float trans[3][3];
float in[3];
float out[3];
//double Rx, Ry, Rz;
//double Sx, Sy, Sz;
//double Tx, Ty, Tz;
@ -142,7 +138,7 @@ private:
double _parent_pitch;
double _parent_roll;
double _parent_speed;
double _parent_ID;
//double _parent_ID;
double _x_offset;
double _y_offset;

View file

@ -77,12 +77,12 @@ private:
float _forceMagnitude;
double _global_ground[4];
float _global_vel[3];
char _name[256];
//char _name[256];
State* _state;
float _dist;
float _timeLagCorrectedDist;
SGPropertyNode_ptr _towEndNode;
const char *_towEndPropertyName;
//const char *_towEndPropertyName;
bool _towEndIsConnectedToProperty;
bool _nodeIsMultiplayer;
bool _nodeIsAiAircraft;

View file

@ -43,8 +43,8 @@ private:
float _n2Min;
float _n2Target;
float _torqueTarget;
float _fuelFlowTarget;
//float _torqueTarget;
//float _fuelFlowTarget;
float _n2;
float _rho;

View file

@ -262,7 +262,6 @@ public:
LegWayptCtl(RNAV* aRNAV, const WayptRef& aWpt) :
WayptController(aRNAV, aWpt),
_waypointOrigin(),
_distanceOriginTargetMeter(0.0),
_distanceOriginAircraftMeter(0.0),
_distanceAircraftTargetMeter(0.0),
_courseOriginToAircraft(0.0),
@ -366,7 +365,6 @@ private:
* A(from), B(to), D(position) perhaps off course
*/
SGGeod _waypointOrigin;
double _distanceOriginTargetMeter;
double _distanceOriginAircraftMeter;
double _distanceAircraftTargetMeter;
double _courseOriginToAircraft;

View file

@ -44,6 +44,12 @@ public:
static void load(const SGPath& path);
double topAltitudeFt() const
{ return _topAltitudeFt; }
double bottomAltitudeFt() const
{ return _bottomAltitudeFt; }
/**
* Track a network of airways
*