Merge branch 'js/test-hashmap-squelch-gcc'
[gitweb.git] / string-list.c
index 2f69c32a8abdc2e1490ff1bf5948a8ec2260150c..2a32a3f1f5d250d7ea2a1b4a65998eeddb44962e 100644 (file)
@@ -59,13 +59,7 @@ static int add_entry(int insert_at, struct string_list *list, const char *string
 
 struct string_list_item *string_list_insert(struct string_list *list, const char *string)
 {
-       return string_list_insert_at_index(list, -1, string);
-}
-
-struct string_list_item *string_list_insert_at_index(struct string_list *list,
-                                                    int insert_at, const char *string)
-{
-       int index = add_entry(insert_at, list, string);
+       int index = add_entry(-1, list, string);
 
        if (index < 0)
                index = -1 - index;