]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fundamental: drop now-unused macro
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 30 Apr 2026 07:31:46 +0000 (09:31 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 Apr 2026 17:26:08 +0000 (19:26 +0200)
Followup for 9d2f5b4611a47b9e5a31296cea70c2d8c6c86bbb.

src/fundamental/cleanup-fundamental.h

index 8d499e5c3498bb22074a26e758ddea666747f246..b9f9c0724546bad2c23306baa23f6c5a8af057e5 100644 (file)
 #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. */