commit: remove commit_list_reverse()

The function commit_list_reverse() is not used anymore; delete it. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Apr 25, 2012 at 22:35 UTC a81a7fbc1a423b112158c2d8647ee80caba108ef
2 files changed -16
commit.c
-15
@@ -361,21 +361,6 @@ struct commit_list *commit_list_insert(struct commit *item, struct commit_list *
361 return new_list;
362 }
363
364 -void commit_list_reverse(struct commit_list **list_p)
365 -{
366 - struct commit_list *prev = NULL, *curr = *list_p, *next;
367 -
368 - if (!list_p)
369 - return;
370 - while (curr) {
371 - next = curr->next;
372 - curr->next = prev;
373 - prev = curr;
374 - curr = next;
375 - }
376 - *list_p = prev;
377 -}
378 -
364 unsigned commit_list_count(const struct commit_list *l)
365 {
366 unsigned c = 0;
commit.h
-1
@@ -59,7 +59,6 @@ unsigned commit_list_count(const struct commit_list *l);
59 struct commit_list *commit_list_insert_by_date(struct commit *item,
60 struct commit_list **list);
61 void commit_list_sort_by_date(struct commit_list **list);
62 -void commit_list_reverse(struct commit_list **list_p);
62
63 void free_commit_list(struct commit_list *list);
64