diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2012-04-25 22:35:54 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-25 14:51:21 -0700 |
commit | a81a7fbc1a423b112158c2d8647ee80caba108ef (patch) | |
tree | c409984bdde0775e056677639fe5b9de460b57e9 /commit.c | |
parent | 2e7da8e9f436f58730c087144763d3e45b6572c4 (diff) | |
download | git-a81a7fbc1a423b112158c2d8647ee80caba108ef.tar.gz |
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>
Diffstat (limited to 'commit.c')
-rw-r--r-- | commit.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -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; |