string_list: remove string_list_insert_at_index() from its API

There no longer is a caller to this function. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stefan Beller committed Nov 24, 2014 at 13:22 UTC f8c4ab611ac5b714b6b4fd296c59512f97f87195
2 files changed +1 -9
string-list.c
+1 -7
@@ -59,13 +59,7 @@ static int add_entry(int insert_at, struct string_list *list, const char *string
59
60 struct string_list_item *string_list_insert(struct string_list *list, const char *string)
61 {
62 - return string_list_insert_at_index(list, -1, string);
63 -}
64 -
65 -struct string_list_item *string_list_insert_at_index(struct string_list *list,
66 - int insert_at, const char *string)
67 -{
68 - int index = add_entry(insert_at, list, string);
62 + int index = add_entry(-1, list, string);
63
64 if (index < 0)
65 index = -1 - index;
string-list.h
-2
@@ -61,8 +61,6 @@ int string_list_find_insert_index(const struct string_list *list, const char *st
61 * Returns the string_list_item, the string is part of.
62 */
63 struct string_list_item *string_list_insert(struct string_list *list, const char *string);
64 -struct string_list_item *string_list_insert_at_index(struct string_list *list,
65 - int insert_at, const char *string);
64
65 /*
66 * Checks if the given string is part of a sorted list. If it is part of the list,