From: frohlich Date: Tue, 7 Nov 2006 05:39:33 +0000 (+0000) Subject: Olaf Flebbe: remove unused variable. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a8523d94ed31d12e829ad55ebcbdc8fb7fdfc5a6;p=flightgear.git Olaf Flebbe: remove unused variable. --- diff --git a/src/Model/acmodel.cxx b/src/Model/acmodel.cxx index 4b0a87841..271382d03 100644 --- a/src/Model/acmodel.cxx +++ b/src/Model/acmodel.cxx @@ -35,7 +35,6 @@ FGAircraftModel::FGAircraftModel () : _aircraft(0), _selector(new osg::Switch), - _scene(new osg::Group), _nearplane(0.10f), _farplane(1000.0f) { @@ -86,7 +85,6 @@ FGAircraftModel::init () liveryPath); _aircraft->init( model ); } - _scene->addChild(_aircraft->getSceneGraph()); _selector->addChild(_aircraft->getSceneGraph()); // Do not do altitude computations with that model _selector->setNodeMask(~SG_NODEMASK_TERRAIN_BIT); diff --git a/src/Model/acmodel.hxx b/src/Model/acmodel.hxx index 9f248acfe..cbab40602 100644 --- a/src/Model/acmodel.hxx +++ b/src/Model/acmodel.hxx @@ -45,7 +45,6 @@ private: SGModelPlacement * _aircraft; osg::ref_ptr _selector; - osg::ref_ptr _scene; float _nearplane; float _farplane;