Skip to content

Commit

Permalink
AP_HAL_LINUX: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarcelo authored and rmackay9 committed Nov 20, 2015
1 parent f3cc27e commit e0a6d83
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
34 changes: 0 additions & 34 deletions libraries/AP_HAL_Linux/Scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,26 +153,6 @@ void Scheduler::delay(uint16_t ms)
}
}

uint64_t Scheduler::millis64()
{
return AP_HAL::millis64();
}

uint64_t Scheduler::micros64()
{
return AP_HAL::micros64();
}

uint32_t Scheduler::millis()
{
return AP_HAL::millis();
}

uint32_t Scheduler::micros()
{
return AP_HAL::micros();
}

void Scheduler::delay_microseconds(uint16_t us)
{
if (_stopped_clock_usec) {
Expand Down Expand Up @@ -390,20 +370,6 @@ void *Scheduler::_io_thread(void* arg)
return NULL;
}

void Scheduler::panic(const char *errormsg, ...)
{
va_list ap;

va_start(ap, errormsg);
vdprintf(1, errormsg, ap);
va_end(ap);
write(1, "\n", 1);

hal.rcin->deinit();
hal.scheduler->delay_microseconds(10000);
exit(1);
}

bool Scheduler::in_timerprocess()
{
return _in_timer_proc;
Expand Down
5 changes: 0 additions & 5 deletions libraries/AP_HAL_Linux/Scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ typedef void *(*pthread_startroutine_t)(void *);

void init(void* machtnichts);
void delay(uint16_t ms);
uint32_t millis();
uint32_t micros();
uint64_t millis64();
uint64_t micros64();
void delay_microseconds(uint16_t us);
void register_delay_callback(AP_HAL::Proc,
uint16_t min_time_ms);
Expand All @@ -48,7 +44,6 @@ typedef void *(*pthread_startroutine_t)(void *);
bool system_initializing();
void system_initialized();

void panic(const char *errormsg, ...) FORMAT(2, 3) NORETURN;
void reboot(bool hold_in_bootloader);

void stop_clock(uint64_t time_usec);
Expand Down

0 comments on commit e0a6d83

Please sign in to comment.