From 6fc60e2d5efd3c6a3345a9f28f8246452a933c83 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Mon, 19 Oct 2015 13:48:04 -0200 Subject: [PATCH] AP_HAL: remove unused init() from the interface And make run() pure virtual to ensure future implementations provide it. --- libraries/AP_HAL/HAL.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/AP_HAL/HAL.h b/libraries/AP_HAL/HAL.h index 4e11b7ff69..5818648e31 100644 --- a/libraries/AP_HAL/HAL.h +++ b/libraries/AP_HAL/HAL.h @@ -67,10 +67,7 @@ public: void (*_loop)(void); }; - virtual void init(int argc, char * const argv[]) const = 0; - - // TODO: Make it pure virtual once all the boards implement it. - virtual void run(int argc, char * const argv[], Callbacks* callbacks) const {}; + virtual void run(int argc, char * const argv[], Callbacks* callbacks) const = 0; AP_HAL::UARTDriver* uartA; AP_HAL::UARTDriver* uartB;