From bd5a58e4c4bb20b85573e0ac6746a8613f43601e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Jun 2015 15:15:54 +1000 Subject: [PATCH] AP_Menu: all vehicles now use functors --- libraries/AP_Menu/AP_Menu.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libraries/AP_Menu/AP_Menu.h b/libraries/AP_Menu/AP_Menu.h index 43fcd8031f..4e8692e71a 100644 --- a/libraries/AP_Menu/AP_Menu.h +++ b/libraries/AP_Menu/AP_Menu.h @@ -56,11 +56,7 @@ public: /// command, so that the same function can be used /// to handle more than one command. /// -#if APM_BUILD_FUNCTOR FUNCTOR_TYPEDEF(func, int8_t, uint8_t, const struct arg *); -#else - typedef int8_t (*func)(uint8_t argc, const struct arg *argv); -#endif static void set_port(AP_HAL::BetterStream *port) { _port = port; @@ -73,11 +69,7 @@ public: /// /// If this function returns false, the menu exits. /// -#if APM_BUILD_FUNCTOR FUNCTOR_TYPEDEF(preprompt, bool); -#else - typedef bool (*preprompt)(void); -#endif /// menu command description /// @@ -98,11 +90,7 @@ public: /// The "?", "help" and "exit" commands are always defined, but /// can be overridden by explicit entries in the command array. /// -#if APM_BUILD_FUNCTOR FUNCTOR_DECLARE(func, int8_t, uint8_t, const struct arg *); -#else - int8_t (*func)(uint8_t argc, const struct arg *argv); -#endif }; /// constructor