diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/strv.c | 15 | ||||
-rw-r--r-- | src/shared/strv.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/shared/strv.c b/src/shared/strv.c index 2df478f30b..adeee282b7 100644 --- a/src/shared/strv.c +++ b/src/shared/strv.c @@ -424,21 +424,6 @@ fail: return NULL; } -char **strv_appendf(char **l, const char *format, ...) { - va_list ap; - _cleanup_free_ char *s = NULL; - int r; - - va_start(ap, format); - r = vasprintf(&s, format, ap); - va_end(ap); - - if (r < 0) - return NULL; - - return strv_append(l, s); -} - int strv_push(char ***l, char *value) { char **c; unsigned n; diff --git a/src/shared/strv.h b/src/shared/strv.h index 4e80ea6d89..d1f2a0ef32 100644 --- a/src/shared/strv.h +++ b/src/shared/strv.h @@ -42,7 +42,6 @@ unsigned strv_length(char * const *l) _pure_; char **strv_merge(char **a, char **b); char **strv_merge_concat(char **a, char **b, const char *suffix); char **strv_append(char **l, const char *s); -char **strv_appendf(char **l, const char *format, ...) _printf_attr_(2, 3); int strv_extend(char ***l, const char *value); int strv_push(char ***l, char *value); |