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:
Carles Cufi 2020-01-09 14:30:30 +01:00 committed by Anas Nashif
commit beedf19ca4
2 changed files with 6 additions and 26 deletions

View file

@ -52,6 +52,12 @@ Stable API changes in this release
Removed APIs in this release Removed APIs in this release
============================ ============================
* Shell
* SHELL_CREATE_STATIC_SUBCMD_SET (deprecated), replaced by
SHELL_STATIC_SUBCMD_SET_CREATE
* SHELL_CREATE_DYNAMIC_CMD (deprecated), replaced by SHELL_DYNAMIC_CMD_CREATE
Kernel Kernel
****** ******

View file

@ -223,23 +223,6 @@ struct shell_static_entry {
.u = { .entry = shell_##name } \ .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. * @brief Define ending subcommands set.
* *
@ -258,15 +241,6 @@ struct shell_static_entry {
.u = { .dynamic_get = get } \ .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. * @brief Initializes a shell command with arguments.
* *