mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Menu: removed BUILD_DELEGATES code
no longer needed
This commit is contained in:
parent
1a2b02a563
commit
85f87b6d9c
@ -58,8 +58,6 @@ public:
|
|||||||
///
|
///
|
||||||
#if APM_BUILD_FUNCTOR
|
#if APM_BUILD_FUNCTOR
|
||||||
FUNCTOR_TYPEDEF(func, int8_t, uint8_t, const struct arg *);
|
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
|
#else
|
||||||
typedef int8_t (*func)(uint8_t argc, const struct arg *argv);
|
typedef int8_t (*func)(uint8_t argc, const struct arg *argv);
|
||||||
#endif
|
#endif
|
||||||
@ -77,8 +75,6 @@ public:
|
|||||||
///
|
///
|
||||||
#if APM_BUILD_FUNCTOR
|
#if APM_BUILD_FUNCTOR
|
||||||
FUNCTOR_TYPEDEF(preprompt, bool);
|
FUNCTOR_TYPEDEF(preprompt, bool);
|
||||||
#elif APM_BUILD_DELEGATES
|
|
||||||
typedef DELEGATE_FUNCTION0(bool) preprompt;
|
|
||||||
#else
|
#else
|
||||||
typedef bool (*preprompt)(void);
|
typedef bool (*preprompt)(void);
|
||||||
#endif
|
#endif
|
||||||
@ -104,8 +100,6 @@ public:
|
|||||||
///
|
///
|
||||||
#if APM_BUILD_FUNCTOR
|
#if APM_BUILD_FUNCTOR
|
||||||
FUNCTOR_DECLARE(func, int8_t, uint8_t, const struct arg *);
|
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
|
#else
|
||||||
int8_t (*func)(uint8_t argc, const struct arg *argv);
|
int8_t (*func)(uint8_t argc, const struct arg *argv);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user