]> git.mxchange.org Git - flightgear.git/commitdiff
James Turner: Here's a trivial patch, when you have a moment:
authordurk <durk>
Thu, 21 Aug 2008 16:34:33 +0000 (16:34 +0000)
committerdurk <durk>
Thu, 21 Aug 2008 16:34:33 +0000 (16:34 +0000)
- removes various members from FGRunway which no-one was using
- any of these can be trivially re-instated if and when someone
actually wants to use them - but right now they're simply bloating up
FGRunway, which we have lots of, because it currently includes all the
taxiways in Robin's data.
- that's it.

src/AIModel/AIFlightPlan.hxx
src/Airports/apt_loader.cxx
src/Airports/runways.cxx
src/Airports/runways.hxx

index fba78887f68fa5454649199ce172978486a0a434..2229715659cef547127b27d551df07552d44bca8 100644 (file)
@@ -94,7 +94,6 @@ public:
   int getGate() const { return gateId; }
   double getLeadInAngle() const { return leadInAngle; }
   const string& getRunway() const { return rwy._rwy_no; }
-  const string& getRunwayId() const { return rwy._id; }
   void setRepeat(bool r) { repeat = r; }
   bool getRepeat(void) const { return repeat; }
   void restart(void);
index 8ea854f70c2f486c829bc10fb67cc0dd10263d93..d3d6217f99c7814124f76d029fbac9d616e12425 100644 (file)
@@ -210,18 +210,11 @@ bool fgAirportDBLoad( FGAirportList *airports,
             double stopway1 = atof( stop[0].c_str() );
             double stopway2 = atof( stop[1].c_str() );
 
-            string lighting_flags = token[9];
             int surface_code = atoi( token[10].c_str() );
-            string shoulder_code = token[11];
-            int marking_code = atoi( token[12].c_str() );
-            double smoothness = atof( token[13].c_str() );
-            bool dist_remaining = (atoi( token[14].c_str() ) == 1 );
 
-            FGRunway rwy(last_apt_id, rwy_no, lon, lat, heading, length,
+            FGRunway rwy(rwy_no, lon, lat, heading, length,
                           width, displ_thresh1, displ_thresh2,
-                          stopway1, stopway2, lighting_flags, surface_code,
-                          shoulder_code, marking_code, smoothness,
-                          dist_remaining);
+                          stopway1, stopway2, surface_code);
             runways.push_back(rwy);
         } else if ( line_id == 18 ) {
             // beacon entry (ignore)
index fa92e91d5539d86b7e248fd97af464c781188260..589be2e999d9709ae088ebc36773f29c40c0dcad 100644 (file)
@@ -46,15 +46,13 @@ FGRunway::FGRunway()
 {
 }
 
-FGRunway::FGRunway( const string& id, const string& rwy_no,
+FGRunway::FGRunway(const string& rwy_no,
                         const double longitude, const double latitude,
                         const double heading, const double length,
                         const double width,
                         const double displ_thresh1, const double displ_thresh2,
                         const double stopway1, const double stopway2,
-                        const string& lighting_flags, const int surface_code,
-                        const string& shoulder_code, const int marking_code,
-                        const double smoothness, const bool dist_remaining )
+                        const int surface_code)
 {
   _rwy_no = rwy_no;
   if (rwy_no[0] == 'x') {
@@ -72,7 +70,6 @@ FGRunway::FGRunway( const string& id, const string& rwy_no,
     }
   }
 
-  _id = id;
   _lon = longitude;
   _lat = latitude;
   _heading = heading;
@@ -83,12 +80,7 @@ FGRunway::FGRunway( const string& id, const string& rwy_no,
   _stopway1 = stopway1;
   _stopway2 = stopway2;
 
-  _lighting_flags = lighting_flags;
   _surface_code = surface_code;
-  _shoulder_code = shoulder_code;
-  _marking_code = marking_code;
-  _smoothness = smoothness;
-  _dist_remaining = dist_remaining;
 }
 
 string FGRunway::reverseIdent(const string& aRunwayIdent)
index 34c884531c26a81d91e56bf239dc2ffc7c1bcbfb..996f38045372a5dc3d7c4ae9cd59c9c8486c836c 100644 (file)
@@ -34,15 +34,13 @@ class FGRunway
 public:
   FGRunway();
   
-  FGRunway(const std::string& id, const std::string& rwy_no,
+  FGRunway(const std::string& rwy_no,
             const double longitude, const double latitude,
             const double heading, const double length,
             const double width,
             const double displ_thresh1, const double displ_thresh2,
             const double stopway1, const double stopway2,
-            const std::string& lighting_flags, const int surface_code,
-            const std::string& shoulder_code, const int marking_code,
-            const double smoothness, const bool dist_remaining);
+            const int surface_code);
   
   /**
    * given a runway identifier (06, 18L, 31R) compute the identifier for the
@@ -58,7 +56,6 @@ public:
 
   bool isTaxiway() const;
   
-    std::string _id;
     std::string _rwy_no;
     std::string _type;                // runway / taxiway
 
@@ -72,12 +69,7 @@ public:
     double _stopway1;
     double _stopway2;
 
-    std::string _lighting_flags;
     int _surface_code;
-    std::string _shoulder_code;
-    int _marking_code;
-    double _smoothness;
-    bool   _dist_remaining;
 };
 
 typedef std::vector<FGRunway> FGRunwayVector;