From 462dd6900cd292a44f8caeb7a5511a105a2c1f6f Mon Sep 17 00:00:00 2001 From: fredb Date: Sun, 17 Dec 2006 18:40:55 +0000 Subject: [PATCH] Remove unused variables --- src/AIModel/AIBase.cxx | 4 ++-- src/Traffic/Schedule.cxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AIModel/AIBase.cxx b/src/AIModel/AIBase.cxx index 2a1abff84..836df56d5 100644 --- a/src/AIModel/AIBase.cxx +++ b/src/AIModel/AIBase.cxx @@ -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; } } diff --git a/src/Traffic/Schedule.cxx b/src/Traffic/Schedule.cxx index 039705ad2..9aa64dc12 100644 --- a/src/Traffic/Schedule.cxx +++ b/src/Traffic/Schedule.cxx @@ -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; -- 2.39.5