Fix warnings identified by updated XCode.
Mostly unused private vars, for various reasons.
This commit is contained in:
parent
9e2625d575
commit
2ec4b6ecc2
11 changed files with 13 additions and 11 deletions
|
@ -173,7 +173,6 @@ private:
|
|||
TrafficVector activeTraffic;
|
||||
TrafficVectorIterator currTraffic;
|
||||
|
||||
bool foundRoute;
|
||||
double totalDistance, maxDistance;
|
||||
FGTowerController *towerController;
|
||||
FGAirport *parent;
|
||||
|
|
|
@ -234,7 +234,7 @@ FGRouteMgr::~FGRouteMgr()
|
|||
input->removeChangeListener(listener);
|
||||
delete listener;
|
||||
|
||||
SGCommandMgr* cmdMgr = SGCommandMgr::instance();
|
||||
//SGCommandMgr* cmdMgr = SGCommandMgr::instance();
|
||||
//cmdMgr->removeCommand("define-user-waypoint");
|
||||
|
||||
}
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#endif
|
||||
|
||||
#include <Navaids/markerbeacon.hxx>
|
||||
#include <Airports/runways.hxx>
|
||||
#include <Navaids/NavDataCache.hxx>
|
||||
|
||||
using std::string;
|
||||
|
||||
|
@ -34,3 +36,10 @@ FGMarkerBeaconRecord::FGMarkerBeaconRecord(PositionedID aGuid, Type aTy,
|
|||
_runway(aRunway)
|
||||
{
|
||||
}
|
||||
|
||||
FGRunwayRef FGMarkerBeaconRecord::runway() const
|
||||
{
|
||||
FGPositioned* p = flightgear::NavDataCache::instance()->loadById(_runway);
|
||||
assert(p->type() == FGPositioned::RUNWAY);
|
||||
return static_cast<FGRunway*>(p);
|
||||
}
|
|
@ -27,13 +27,15 @@
|
|||
#include <simgear/compiler.h>
|
||||
|
||||
#include "positioned.hxx"
|
||||
|
||||
#include <Airports/airports_fwd.hxx>
|
||||
|
||||
class FGMarkerBeaconRecord : public FGPositioned
|
||||
{
|
||||
public:
|
||||
|
||||
FGMarkerBeaconRecord(PositionedID aGuid, Type aTy, PositionedID aRunway, const SGGeod& aPos);
|
||||
|
||||
FGRunwayRef runway() const;
|
||||
private:
|
||||
|
||||
PositionedID _runway;
|
||||
|
|
|
@ -39,7 +39,6 @@ using std::string;
|
|||
class FGJoyClient : public FGProtocol {
|
||||
|
||||
char buf[256];
|
||||
int length;
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ using std::string;
|
|||
class FGJsClient : public FGProtocol {
|
||||
|
||||
char buf[256];
|
||||
int length;
|
||||
double axis[4];
|
||||
SGPropertyNode_ptr axisdef[4];
|
||||
string axisdefstr[4];
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
class FGLFSGlass : public FGProtocol {
|
||||
|
||||
FGLFSGlassData buf;
|
||||
int length;
|
||||
|
||||
// Environment
|
||||
SGPropertyNode_ptr press_node;
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
class FGNative : public FGProtocol {
|
||||
|
||||
FGInterface buf;
|
||||
int length;
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
@ -40,8 +40,6 @@ class FGNativeCtrls : public FGProtocol {
|
|||
FGNetCtrls net_ctrls;
|
||||
FGControls ctrls;
|
||||
|
||||
int length;
|
||||
|
||||
public:
|
||||
|
||||
FGNativeCtrls();
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
class FGNativeFDM : public FGProtocol {
|
||||
|
||||
FGNetFDM buf;
|
||||
int length;
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
class FGNativeGUI : public FGProtocol {
|
||||
|
||||
FGNetGUI buf;
|
||||
int length;
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue