Browse Source

AP_Menu: removed BUILD_DELEGATES code

no longer needed
master
Andrew Tridgell 10 years ago
parent
commit
85f87b6d9c
  1. 6
      libraries/AP_Menu/AP_Menu.h

6
libraries/AP_Menu/AP_Menu.h

@ -58,8 +58,6 @@ public: @@ -58,8 +58,6 @@ public:
///
#if APM_BUILD_FUNCTOR
FUNCTOR_TYPEDEF(func, int8_t, uint8_t, const struct arg *);
#elif APM_BUILD_DELEGATES
typedef DELEGATE_FUNCTION2(int8_t, uint8_t, const struct arg *) func;
#else
typedef int8_t (*func)(uint8_t argc, const struct arg *argv);
#endif
@ -77,8 +75,6 @@ public: @@ -77,8 +75,6 @@ public:
///
#if APM_BUILD_FUNCTOR
FUNCTOR_TYPEDEF(preprompt, bool);
#elif APM_BUILD_DELEGATES
typedef DELEGATE_FUNCTION0(bool) preprompt;
#else
typedef bool (*preprompt)(void);
#endif
@ -104,8 +100,6 @@ public: @@ -104,8 +100,6 @@ public:
///
#if APM_BUILD_FUNCTOR
FUNCTOR_DECLARE(func, int8_t, uint8_t, const struct arg *);
#elif APM_BUILD_DELEGATES
DELEGATE_FUNCTION2(int8_t, uint8_t, const struct arg *) func;
#else
int8_t (*func)(uint8_t argc, const struct arg *argv);
#endif

Loading…
Cancel
Save