From 9aa49cda93720b040269b32518632e8675120f86 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 3 Feb 2016 02:00:30 -0200 Subject: [PATCH] Global: remove system_initializing() from scheduler This is not used anymore. --- libraries/AP_HAL/Scheduler.h | 1 - libraries/AP_HAL_Empty/Scheduler.cpp | 4 ---- libraries/AP_HAL_Empty/Scheduler.h | 1 - libraries/AP_HAL_FLYMAPLE/Scheduler.cpp | 4 ---- libraries/AP_HAL_FLYMAPLE/Scheduler.h | 1 - libraries/AP_HAL_Linux/Scheduler.cpp | 4 ---- libraries/AP_HAL_Linux/Scheduler.h | 1 - libraries/AP_HAL_PX4/Scheduler.cpp | 4 ---- libraries/AP_HAL_PX4/Scheduler.h | 1 - libraries/AP_HAL_QURT/Scheduler.cpp | 4 ---- libraries/AP_HAL_QURT/Scheduler.h | 1 - libraries/AP_HAL_SITL/Scheduler.cpp | 4 ---- libraries/AP_HAL_SITL/Scheduler.h | 1 - libraries/AP_HAL_VRBRAIN/Scheduler.cpp | 4 ---- libraries/AP_HAL_VRBRAIN/Scheduler.h | 1 - 15 files changed, 36 deletions(-) diff --git a/libraries/AP_HAL/Scheduler.h b/libraries/AP_HAL/Scheduler.h index ecf3856d21..0ca81e889d 100644 --- a/libraries/AP_HAL/Scheduler.h +++ b/libraries/AP_HAL/Scheduler.h @@ -54,7 +54,6 @@ public: virtual void register_timer_failsafe(AP_HAL::Proc, uint32_t period_us) = 0; - virtual bool system_initializing() = 0; virtual void system_initialized() = 0; virtual void reboot(bool hold_in_bootloader) = 0; diff --git a/libraries/AP_HAL_Empty/Scheduler.cpp b/libraries/AP_HAL_Empty/Scheduler.cpp index fa63ec2f5d..bb57133e92 100644 --- a/libraries/AP_HAL_Empty/Scheduler.cpp +++ b/libraries/AP_HAL_Empty/Scheduler.cpp @@ -48,10 +48,6 @@ void Scheduler::begin_atomic() void Scheduler::end_atomic() {} -bool Scheduler::system_initializing() { - return false; -} - void Scheduler::system_initialized() {} diff --git a/libraries/AP_HAL_Empty/Scheduler.h b/libraries/AP_HAL_Empty/Scheduler.h index 61b025a873..ab282a7bb5 100644 --- a/libraries/AP_HAL_Empty/Scheduler.h +++ b/libraries/AP_HAL_Empty/Scheduler.h @@ -25,7 +25,6 @@ public: void begin_atomic(); void end_atomic(); - bool system_initializing(); void system_initialized(); void reboot(bool hold_in_bootloader); diff --git a/libraries/AP_HAL_FLYMAPLE/Scheduler.cpp b/libraries/AP_HAL_FLYMAPLE/Scheduler.cpp index 8b8cf78dd5..ac017aee26 100644 --- a/libraries/AP_HAL_FLYMAPLE/Scheduler.cpp +++ b/libraries/AP_HAL_FLYMAPLE/Scheduler.cpp @@ -193,10 +193,6 @@ void FLYMAPLEScheduler::_run_timer_procs(bool called_from_isr) _in_timer_proc = false; } -bool FLYMAPLEScheduler::system_initializing() { - return !_initialized; -} - void FLYMAPLEScheduler::system_initialized() { if (_initialized) { diff --git a/libraries/AP_HAL_FLYMAPLE/Scheduler.h b/libraries/AP_HAL_FLYMAPLE/Scheduler.h index 26aa616b09..f5e25722c9 100644 --- a/libraries/AP_HAL_FLYMAPLE/Scheduler.h +++ b/libraries/AP_HAL_FLYMAPLE/Scheduler.h @@ -46,7 +46,6 @@ public: void begin_atomic(); void end_atomic(); - bool system_initializing(); void system_initialized(); void reboot(bool hold_in_bootloader); diff --git a/libraries/AP_HAL_Linux/Scheduler.cpp b/libraries/AP_HAL_Linux/Scheduler.cpp index 06550c87d9..020aacd491 100644 --- a/libraries/AP_HAL_Linux/Scheduler.cpp +++ b/libraries/AP_HAL_Linux/Scheduler.cpp @@ -403,10 +403,6 @@ void Scheduler::begin_atomic() void Scheduler::end_atomic() {} -bool Scheduler::system_initializing() { - return !_initialized; -} - void Scheduler::_wait_all_threads() { int r = pthread_barrier_wait(&_initialized_barrier); diff --git a/libraries/AP_HAL_Linux/Scheduler.h b/libraries/AP_HAL_Linux/Scheduler.h index 1bf30d7b6c..e71c48286e 100644 --- a/libraries/AP_HAL_Linux/Scheduler.h +++ b/libraries/AP_HAL_Linux/Scheduler.h @@ -37,7 +37,6 @@ public: void begin_atomic(); void end_atomic(); - bool system_initializing(); void system_initialized(); void reboot(bool hold_in_bootloader); diff --git a/libraries/AP_HAL_PX4/Scheduler.cpp b/libraries/AP_HAL_PX4/Scheduler.cpp index 711641b698..6a64eab66a 100644 --- a/libraries/AP_HAL_PX4/Scheduler.cpp +++ b/libraries/AP_HAL_PX4/Scheduler.cpp @@ -367,10 +367,6 @@ bool PX4Scheduler::in_timerprocess() return getpid() != _main_task_pid; } -bool PX4Scheduler::system_initializing() { - return !_initialized; -} - void PX4Scheduler::system_initialized() { if (_initialized) { AP_HAL::panic("PANIC: scheduler::system_initialized called" diff --git a/libraries/AP_HAL_PX4/Scheduler.h b/libraries/AP_HAL_PX4/Scheduler.h index d632df1e4f..7084e8fa30 100644 --- a/libraries/AP_HAL_PX4/Scheduler.h +++ b/libraries/AP_HAL_PX4/Scheduler.h @@ -58,7 +58,6 @@ public: void reboot(bool hold_in_bootloader); bool in_timerprocess(); - bool system_initializing(); void system_initialized(); void hal_initialized() { _hal_initialized = true; } diff --git a/libraries/AP_HAL_QURT/Scheduler.cpp b/libraries/AP_HAL_QURT/Scheduler.cpp index 9e0cda1889..2bd673b968 100644 --- a/libraries/AP_HAL_QURT/Scheduler.cpp +++ b/libraries/AP_HAL_QURT/Scheduler.cpp @@ -272,10 +272,6 @@ bool Scheduler::in_timerprocess() return getpid() != _main_task_pid; } -bool Scheduler::system_initializing() { - return !_initialized; -} - void Scheduler::system_initialized() { if (_initialized) { AP_HAL::panic("PANIC: scheduler::system_initialized called" diff --git a/libraries/AP_HAL_QURT/Scheduler.h b/libraries/AP_HAL_QURT/Scheduler.h index 82ea781a64..8751ff63fe 100644 --- a/libraries/AP_HAL_QURT/Scheduler.h +++ b/libraries/AP_HAL_QURT/Scheduler.h @@ -32,7 +32,6 @@ public: void reboot(bool hold_in_bootloader); bool in_timerprocess(); - bool system_initializing(); void system_initialized(); void hal_initialized(); diff --git a/libraries/AP_HAL_SITL/Scheduler.cpp b/libraries/AP_HAL_SITL/Scheduler.cpp index 9e8613a351..748ac7a229 100644 --- a/libraries/AP_HAL_SITL/Scheduler.cpp +++ b/libraries/AP_HAL_SITL/Scheduler.cpp @@ -122,10 +122,6 @@ bool Scheduler::in_timerprocess() { return _in_timer_proc || _in_io_proc; } -bool Scheduler::system_initializing() { - return !_initialized; -} - void Scheduler::system_initialized() { if (_initialized) { AP_HAL::panic( diff --git a/libraries/AP_HAL_SITL/Scheduler.h b/libraries/AP_HAL_SITL/Scheduler.h index fe984f89bb..70ac155bd8 100644 --- a/libraries/AP_HAL_SITL/Scheduler.h +++ b/libraries/AP_HAL_SITL/Scheduler.h @@ -31,7 +31,6 @@ public: void register_timer_failsafe(AP_HAL::Proc, uint32_t period_us); - bool system_initializing(); void system_initialized(); void reboot(bool hold_in_bootloader); diff --git a/libraries/AP_HAL_VRBRAIN/Scheduler.cpp b/libraries/AP_HAL_VRBRAIN/Scheduler.cpp index 490c7c837b..a2a9e4ab35 100644 --- a/libraries/AP_HAL_VRBRAIN/Scheduler.cpp +++ b/libraries/AP_HAL_VRBRAIN/Scheduler.cpp @@ -310,10 +310,6 @@ bool VRBRAINScheduler::in_timerprocess() return getpid() != _main_task_pid; } -bool VRBRAINScheduler::system_initializing() { - return !_initialized; -} - void VRBRAINScheduler::system_initialized() { if (_initialized) { AP_HAL::panic("PANIC: scheduler::system_initialized called" diff --git a/libraries/AP_HAL_VRBRAIN/Scheduler.h b/libraries/AP_HAL_VRBRAIN/Scheduler.h index 7ff61d4b7d..509a877bd8 100644 --- a/libraries/AP_HAL_VRBRAIN/Scheduler.h +++ b/libraries/AP_HAL_VRBRAIN/Scheduler.h @@ -37,7 +37,6 @@ public: void reboot(bool hold_in_bootloader); bool in_timerprocess(); - bool system_initializing(); void system_initialized(); void hal_initialized() { _hal_initialized = true; }