]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/strv.h
fundamental: Move some helpers into string-util-fundamental
[thirdparty/systemd.git] / src / basic / strv.h
index c567785cdb7530448eda8318e4396b634c739cfd..072739df355518abff28da8bb391ea1ea409e845 100644 (file)
@@ -140,12 +140,6 @@ static inline int strv_from_nulstr(char ***a, const char *nulstr) {
 
 bool strv_overlap(char * const *a, char * const *b) _pure_;
 
-#define _STRV_FOREACH(s, l, i)                                          \
-        for (typeof(*(l)) *s, *i = (l); (s = i) && *i; i++)
-
-#define STRV_FOREACH(s, l)                      \
-        _STRV_FOREACH(s, l, UNIQ_T(i, UNIQ))
-
 #define _STRV_FOREACH_BACKWARDS(s, l, h, i)                             \
         for (typeof(*(l)) *s, *h = (l), *i = ({                         \
                                 size_t _len = strv_length(h);           \