From: Zbigniew Jędrzejewski-Szmek Date: Thu, 30 Apr 2026 07:31:46 +0000 (+0200) Subject: fundamental: drop now-unused macro X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ce8cd17da3c5688a36106a1af48a16dd13daae6;p=thirdparty%2Fsystemd.git fundamental: drop now-unused macro Followup for 9d2f5b4611a47b9e5a31296cea70c2d8c6c86bbb. --- diff --git a/src/fundamental/cleanup-fundamental.h b/src/fundamental/cleanup-fundamental.h index 8d499e5c349..b9f9c072454 100644 --- a/src/fundamental/cleanup-fundamental.h +++ b/src/fundamental/cleanup-fundamental.h @@ -45,14 +45,6 @@ #define DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_MACRO(type, macro, empty) \ DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_MACRO_RENAME(type, macro, macro##p, empty) -/* Clean up a NULL-terminated array by dropping all the items in it (up to the first NULL). - * The array itself is not deallocated. */ -#define DEFINE_ARRAY_DONE_FUNC(type, helper) \ - void helper ## _many(type (*p)[]) { \ - for (type *t = *ASSERT_PTR(p); *t; t++) \ - *t = helper(*t); \ - } - /* Clean up an array of pointers to objects by dropping all the items in it. * The size of the array is passed in as a parameter, so NULL items may appear in the middle of the array. * Free the array itself afterwards. */