1
0
Fork 0

Fix warnings identified by updated XCode.

Mostly unused private vars, for various reasons.
This commit is contained in:
James Turner 2013-06-21 18:39:16 +01:00
parent 9e2625d575
commit 2ec4b6ecc2
11 changed files with 13 additions and 11 deletions

View file

@ -173,7 +173,6 @@ private:
TrafficVector activeTraffic;
TrafficVectorIterator currTraffic;
bool foundRoute;
double totalDistance, maxDistance;
FGTowerController *towerController;
FGAirport *parent;

View file

@ -234,7 +234,7 @@ FGRouteMgr::~FGRouteMgr()
input->removeChangeListener(listener);
delete listener;
SGCommandMgr* cmdMgr = SGCommandMgr::instance();
//SGCommandMgr* cmdMgr = SGCommandMgr::instance();
//cmdMgr->removeCommand("define-user-waypoint");
}

View file

@ -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);
}

View file

@ -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;

View file

@ -39,7 +39,6 @@ using std::string;
class FGJoyClient : public FGProtocol {
char buf[256];
int length;
public:

View file

@ -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];

View file

@ -38,7 +38,6 @@
class FGLFSGlass : public FGProtocol {
FGLFSGlassData buf;
int length;
// Environment
SGPropertyNode_ptr press_node;

View file

@ -35,7 +35,6 @@
class FGNative : public FGProtocol {
FGInterface buf;
int length;
public:

View file

@ -40,8 +40,6 @@ class FGNativeCtrls : public FGProtocol {
FGNetCtrls net_ctrls;
FGControls ctrls;
int length;
public:
FGNativeCtrls();

View file

@ -36,7 +36,6 @@
class FGNativeFDM : public FGProtocol {
FGNetFDM buf;
int length;
public:

View file

@ -33,7 +33,6 @@
class FGNativeGUI : public FGProtocol {
FGNetGUI buf;
int length;
public: