]> git.mxchange.org Git - flightgear.git/commitdiff
Remove unused variables
authorfredb <fredb>
Sun, 17 Dec 2006 18:40:55 +0000 (18:40 +0000)
committerfredb <fredb>
Sun, 17 Dec 2006 18:40:55 +0000 (18:40 +0000)
src/AIModel/AIBase.cxx
src/Traffic/Schedule.cxx

index 2a1abff840e822604cc7c89094a78626f530e7e3..836df56d5ee54ab607e15ec80ce04c95e0dcf022 100644 (file)
@@ -133,14 +133,14 @@ bool FGAIBase::init() {
      try {
        model = load3DModel( globals->get_fg_root(), ai_path.str(), props,
                         globals->get_sim_time_sec() );
-     } catch (const sg_exception &e) {
+     } catch (const sg_exception &) {
        model = NULL;
      }
      if (!model) {
        try {
          model = load3DModel( globals->get_fg_root(), model_path, props,
                         globals->get_sim_time_sec() );
-       } catch (const sg_exception &e) {
+       } catch (const sg_exception &) {
          model = NULL;
        }
      }
index 039705ad201420f2dbb1744ad017af1352e1ded1..9aa64dc128f394afe9bb62e6a007e223525f88ae 100644 (file)
@@ -374,7 +374,7 @@ bool FGAISchedule::update(time_t now)
            {
              string flightPlanName = dep->getId() + string("-") + arr->getId() + 
                string(".xml");
-             int alt;
+             //int alt;
              //if  ((i->getDepartureTime() < now))
              //{
              //          alt = i->getCruiseAlt() *100;
@@ -461,8 +461,8 @@ void FGAISchedule::next()
 
 double FGAISchedule::getSpeed()
 {
-  double courseToUser,   courseToDest;
-  double distanceToUser, distanceToDest;
+  double courseToDest;
+  double distanceToDest;
   double speed, remainingTimeEnroute;
   FGAirport *dep, *arr;