diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-10-06 13:40:13 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-10-06 13:40:13 -0700 |
| commit | 7ca97f5222f43bf9ad4a7bb45505da4e15eac4be (patch) | |
| tree | 646dac2875f2ddfcf0aa4925efa86640ac4ad9f2 /string-list.c | |
| parent | 870de59af079cca5a7d99397f2fc02ab7143d491 (diff) | |
| parent | abf897bacd2d36b9dbd07c70b4a2f97a084704ee (diff) | |
| download | git-7ca97f5222f43bf9ad4a7bb45505da4e15eac4be.tar.gz | |
Merge branch 'ab/retire-string-list-init'
Code cleanup.
* ab/retire-string-list-init:
string-list.[ch]: remove string_list_init() compatibility function
Diffstat (limited to 'string-list.c')
| -rw-r--r-- | string-list.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/string-list.c b/string-list.c index 43576ad126..549fc416d6 100644 --- a/string-list.c +++ b/string-list.c @@ -13,14 +13,6 @@ void string_list_init_dup(struct string_list *list) memcpy(list, &blank, sizeof(*list)); } -void string_list_init(struct string_list *list, int strdup_strings) -{ - if (strdup_strings) - string_list_init_dup(list); - else - string_list_init_nodup(list); -} - /* if there is no exact match, point to the index where the entry could be * inserted */ static int get_entry_index(const struct string_list *list, const char *string, |
