HAL_SITL: g_state is not needed any more

This commit is contained in:
Andrew Tridgell 2015-05-02 22:15:05 +10:00
parent a17fc9e5ab
commit 878549530d
2 changed files with 0 additions and 7 deletions

View File

@ -51,8 +51,6 @@ extern const AP_HAL::HAL& hal;
using namespace AVR_SITL; using namespace AVR_SITL;
SITL_State *g_state;
// catch floating point exceptions // catch floating point exceptions
static void _sig_fpe(int signum) static void _sig_fpe(int signum)
{ {
@ -237,9 +235,6 @@ void SITL_State::_sitl_setup(void)
// start with non-zero clock // start with non-zero clock
hal.scheduler->stop_clock(1); hal.scheduler->stop_clock(1);
} }
// keep a global state pointer for static callbacks
g_state = this;
} }

View File

@ -82,8 +82,6 @@ uint32_t SITLScheduler::millis()
return millis64() & 0xFFFFFFFF; return millis64() & 0xFFFFFFFF;
} }
extern AVR_SITL::SITL_State *g_state;
void SITLScheduler::delay_microseconds(uint16_t usec) void SITLScheduler::delay_microseconds(uint16_t usec)
{ {
uint64_t start = micros64(); uint64_t start = micros64();