summaryrefslogtreecommitdiff
path: root/string-list.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2014-11-24 21:22:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-12-04 23:10:27 (GMT)
commitf8c4ab611ac5b714b6b4fd296c59512f97f87195 (patch)
treef0b8f9b8912a14ddece5ad5dd19a1ae619c165c1 /string-list.c
parent63226218ba39e971c8a75d9419a7668b075ad85e (diff)
downloadgit-f8c4ab611ac5b714b6b4fd296c59512f97f87195.zip
git-f8c4ab611ac5b714b6b4fd296c59512f97f87195.tar.gz
git-f8c4ab611ac5b714b6b4fd296c59512f97f87195.tar.bz2
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>
Diffstat (limited to 'string-list.c')
-rw-r--r--string-list.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/string-list.c b/string-list.c
index c5aa076..9584fa6 100644
--- a/string-list.c
+++ b/string-list.c
@@ -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;