summaryrefslogtreecommitdiff
path: root/string-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-09-24 17:30:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-24 17:30:50 (GMT)
commitf8649f8cfc81f9c8b00e32bffc89c3e30cb2a3c0 (patch)
tree1f4b17a92fe4588144f9c2de306827133957386c /string-list.c
parent2bdbe4a2c376ce2d7e8b056b70ce4f1ce92e2d15 (diff)
parent0597dd62ba428dd02b2bf280ede4cdb0b2e318c0 (diff)
downloadgit-f8649f8cfc81f9c8b00e32bffc89c3e30cb2a3c0.zip
git-f8649f8cfc81f9c8b00e32bffc89c3e30cb2a3c0.tar.gz
git-f8649f8cfc81f9c8b00e32bffc89c3e30cb2a3c0.tar.bz2
Merge branch 'sb/string-list-remove-unused'
Code clean-up. * sb/string-list-remove-unused: string-list: remove unused function print_string_list
Diffstat (limited to 'string-list.c')
-rw-r--r--string-list.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/string-list.c b/string-list.c
index 771c455..1f6063f 100644
--- a/string-list.c
+++ b/string-list.c
@@ -195,16 +195,6 @@ void string_list_clear_func(struct string_list *list, string_list_clear_func_t c
list->nr = list->alloc = 0;
}
-
-void print_string_list(const struct string_list *p, const char *text)
-{
- int i;
- if ( text )
- printf("%s\n", text);
- for (i = 0; i < p->nr; i++)
- printf("%s:%p\n", p->items[i].string, p->items[i].util);
-}
-
struct string_list_item *string_list_append_nodup(struct string_list *list,
char *string)
{