Modified Files:
src/Cockpit/cockpit.cxx src/Cockpit/cockpit.hxx: Remove unused code
This commit is contained in:
parent
5d18c09c08
commit
1c76f6db74
2 changed files with 0 additions and 31 deletions
|
@ -59,10 +59,6 @@
|
||||||
#include "hud.hxx"
|
#include "hud.hxx"
|
||||||
|
|
||||||
|
|
||||||
// This is a structure that contains all data related to
|
|
||||||
// cockpit/panel/hud system
|
|
||||||
|
|
||||||
static pCockpit ac_cockpit;
|
|
||||||
// The following routines obtain information concerntin the aircraft's
|
// The following routines obtain information concerntin the aircraft's
|
||||||
// current state and return it to calling instrument display routines.
|
// current state and return it to calling instrument display routines.
|
||||||
// They should eventually be member functions of the aircraft.
|
// They should eventually be member functions of the aircraft.
|
||||||
|
@ -541,21 +537,12 @@ bool fgCockpitInit( fgAIRCRAFT *cur_aircraft )
|
||||||
// current aircraft.
|
// current aircraft.
|
||||||
|
|
||||||
fgHUDInit( cur_aircraft );
|
fgHUDInit( cur_aircraft );
|
||||||
ac_cockpit = new fg_Cockpit();
|
|
||||||
|
|
||||||
SG_LOG( SG_COCKPIT, SG_INFO,
|
|
||||||
" Code " << ac_cockpit->code() << " Status "
|
|
||||||
<< ac_cockpit->status() );
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void fgCockpitUpdate( osg::State* state ) {
|
void fgCockpitUpdate( osg::State* state ) {
|
||||||
|
|
||||||
SG_LOG( SG_COCKPIT, SG_DEBUG,
|
|
||||||
"Cockpit: code " << ac_cockpit->code() << " status "
|
|
||||||
<< ac_cockpit->status() );
|
|
||||||
|
|
||||||
static const SGPropertyNode * xsize_node = fgGetNode("/sim/startup/xsize");
|
static const SGPropertyNode * xsize_node = fgGetNode("/sim/startup/xsize");
|
||||||
static const SGPropertyNode * ysize_node = fgGetNode("/sim/startup/ysize");
|
static const SGPropertyNode * ysize_node = fgGetNode("/sim/startup/ysize");
|
||||||
static const SGPropertyNode * hud_visibility_node
|
static const SGPropertyNode * hud_visibility_node
|
||||||
|
|
|
@ -36,25 +36,7 @@
|
||||||
#include "Aircraft/aircraft.hxx"
|
#include "Aircraft/aircraft.hxx"
|
||||||
#include "panel.hxx"
|
#include "panel.hxx"
|
||||||
|
|
||||||
// Class fg_Cockpit This class is a holder for the heads up display
|
|
||||||
// and is initialized with a
|
|
||||||
class fg_Cockpit {
|
|
||||||
private:
|
|
||||||
int Code;
|
|
||||||
int cockpitStatus;
|
|
||||||
SGPropertyNode_ptr hud_status;
|
|
||||||
|
|
||||||
public:
|
|
||||||
fg_Cockpit () : Code(1), cockpitStatus(0) {};
|
|
||||||
int code ( void ) { return Code; }
|
|
||||||
int status( void ) { return cockpitStatus; }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
typedef fg_Cockpit * pCockpit;
|
|
||||||
|
|
||||||
bool fgCockpitInit( fgAIRCRAFT *cur_aircraft );
|
bool fgCockpitInit( fgAIRCRAFT *cur_aircraft );
|
||||||
void fgCockpitUpdate( osg::State* );
|
void fgCockpitUpdate( osg::State* );
|
||||||
|
|
||||||
|
|
||||||
#endif /* _COCKPIT_HXX */
|
#endif /* _COCKPIT_HXX */
|
||||||
|
|
Loading…
Reference in a new issue