Skip to content

Commit 1af73a6

Browse files
mbolivar-nordiccarlescufi
authored andcommitted
sys/util.h: remove deprecated MACRO_MAP()
Since this is an experimental API and MACRO_MAP() was deprecated in favor of FOR_EACH() in zephyr v2.3.0, we are within our rights to just remove it without notice now. Do so and mention it in the release notes. Signed-off-by: Martí Bolívar <[email protected]>
1 parent 67ac768 commit 1af73a6

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

doc/releases/release-notes-2.4.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ Deprecated in this release
4848
Removed APIs in this release
4949
============================
5050

51+
* Other
52+
53+
* The deprecated ``MACRO_MAP`` macro has been removed from the
54+
:ref:`util_api`. Use ``FOR_EACH`` instead.
5155

5256
Stable API changes in this release
5357
==================================

include/sys/util.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -724,19 +724,6 @@ uint8_t u8_to_dec(char *buf, uint8_t buflen, uint8_t value);
724724
20, 19, 18, 17, 16, 15, 14, 13, 12, 11, \
725725
10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, ~)
726726

727-
/**
728-
* Equivalent to FOR_EACH(F, (), ...).
729-
*
730-
* @deprecated Use FOR_EACH instead.
731-
*
732-
* @param F Macro name to be used for argument processing Macro should have
733-
* following form: MACRO(argument).
734-
* @param ... Arguments to process.
735-
*
736-
* @return All arguments processed by given macro
737-
*/
738-
#define MACRO_MAP(F, ...) __DEPRECATED_MACRO FOR_EACH(F, (), __VA_ARGS__)
739-
740727
/**
741728
* @brief Mapping macro that pastes results together
742729
*

0 commit comments

Comments
 (0)