From a81a7fbc1a423b112158c2d8647ee80caba108ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Wed, 25 Apr 2012 22:35:54 +0200 Subject: commit: remove commit_list_reverse() The function commit_list_reverse() is not used anymore; delete it. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- commit.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'commit.c') diff --git a/commit.c b/commit.c index 8361acb6cf..9ed36c7db5 100644 --- a/commit.c +++ b/commit.c @@ -361,21 +361,6 @@ struct commit_list *commit_list_insert(struct commit *item, struct commit_list * return new_list; } -void commit_list_reverse(struct commit_list **list_p) -{ - struct commit_list *prev = NULL, *curr = *list_p, *next; - - if (!list_p) - return; - while (curr) { - next = curr->next; - curr->next = prev; - prev = curr; - curr = next; - } - *list_p = prev; -} - unsigned commit_list_count(const struct commit_list *l) { unsigned c = 0; -- cgit v1.2.3