shell: Remove deprecated macros
Remove deprecated macros and add a note to the release notes to this effect. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
4b68f959b5
commit
beedf19ca4
2 changed files with 6 additions and 26 deletions
|
@ -223,23 +223,6 @@ struct shell_static_entry {
|
|||
.u = { .entry = shell_##name } \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Deprecated macro for creating a subcommand set.
|
||||
*
|
||||
* It must be used outside of any function body.
|
||||
*
|
||||
* @param[in] name Name of the subcommand set.
|
||||
*/
|
||||
#define SHELL_CREATE_STATIC_SUBCMD_SET(name) \
|
||||
__DEPRECATED_MACRO \
|
||||
static const struct shell_static_entry shell_##name[]; \
|
||||
static const struct shell_cmd_entry name = { \
|
||||
.is_dynamic = false, \
|
||||
.u.entry = shell_##name \
|
||||
}; \
|
||||
static const struct shell_static_entry shell_##name[] =
|
||||
|
||||
|
||||
/**
|
||||
* @brief Define ending subcommands set.
|
||||
*
|
||||
|
@ -258,15 +241,6 @@ struct shell_static_entry {
|
|||
.u = { .dynamic_get = get } \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Deprecated macro for creating a dynamic entry.
|
||||
*
|
||||
* @param[in] name Name of the dynamic entry.
|
||||
* @param[in] get Pointer to the function returning dynamic commands array
|
||||
*/
|
||||
#define SHELL_CREATE_DYNAMIC_CMD(name, get) \
|
||||
__DEPRECATED_MACRO SHELL_DYNAMIC_CMD_CREATE(name, get)
|
||||
|
||||
/**
|
||||
* @brief Initializes a shell command with arguments.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue