]> git.mxchange.org Git - flightgear.git/commitdiff
Remove unused variables.
authorfrohlich <frohlich>
Mon, 16 Mar 2009 11:57:35 +0000 (11:57 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 18 Mar 2009 07:00:08 +0000 (08:00 +0100)
Modified Files:
src/ATCDCL/AIEntity.cxx src/ATCDCL/AIEntity.hxx
src/ATCDCL/AIGAVFRTraffic.hxx src/ATCDCL/AILocalTraffic.cxx

src/ATCDCL/AIEntity.cxx
src/ATCDCL/AIEntity.hxx
src/ATCDCL/AIGAVFRTraffic.hxx
src/ATCDCL/AILocalTraffic.cxx

index 3f0f1f7ea11074612adaf3d28fb6fe0940decc63..aa741e3594c3f84d656f94d42927241ad1224121 100644 (file)
@@ -53,8 +53,7 @@ FGAIEntity::~FGAIEntity() {
 }
 
 void FGAIEntity::SetModel(osg::Node* model) {
-       _model = model;
-       _aip.init(_model.get());
+       _aip.init(model);
        _aip.setVisible(false);
        globals->get_scenery()->get_scene_graph()->addChild(_aip.getSceneGraph());
 
index 2822e0184def2e337f31afb80ab92d0cf6956d71..f85dae2176d3856675853441ddd3ea6a17752d14 100644 (file)
@@ -61,8 +61,6 @@ protected:
     double _roll;      //degrees
     double _pitch;     //degrees
 
-    char* _model_path; //Path to the 3D model
-    osg::ref_ptr<osg::Node> _model;    // Pointer to the model
     SGModelPlacement _aip;
     double _ground_elevation_m;
 
index 771aa8f9d27844d34d40169c319dfbd83f6967ec..ce3870dcf111c36bb2944fa45a18ccd8b98a7457 100644 (file)
@@ -111,8 +111,6 @@ private:
        bool _entering;
        bool _turning;
        
-       //ssgBranch* _model;
-       
        int GetQuadrangleAltitude(int dir, int des_alt);
        
        Point3D GetPatternApproachPos();
index 091709e61340a12e66855663d0c23d9f5d158828..51399a2866ac4682e48dfda9f0549337e2bf0da8 100644 (file)
@@ -53,16 +53,6 @@ using std::string;
 #include "AIMgr.hxx"
 
 FGAILocalTraffic::FGAILocalTraffic() {
-       /*ssgBranch *model = sgLoad3DModel( globals->get_fg_root(),
-                                         planepath.c_str(),
-                                         globals->get_props(),
-                                         globals->get_sim_time_sec() );
-       *//*
-       _model = model;
-       _aip.init(_model);
-       */
-       //SetModel(model);
-       
        ATC = globals->get_ATC_mgr();
        
        // TODO - unhardwire this