From c76189875b35ca04d42df915cd902a33fdbcb9b0 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 11 Jan 2010 21:15:12 -0800 Subject: object.c: remove unused functions object_list_append() and object_list_length}() are not used anywhere. Signed-off-by: Junio C Hamano --- object.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index fe8eaaf19f..3ca92c4c4d 100644 --- a/object.c +++ b/object.c @@ -217,27 +217,6 @@ struct object_list *object_list_insert(struct object *item, return new_list; } -void object_list_append(struct object *item, - struct object_list **list_p) -{ - while (*list_p) { - list_p = &((*list_p)->next); - } - *list_p = xmalloc(sizeof(struct object_list)); - (*list_p)->next = NULL; - (*list_p)->item = item; -} - -unsigned object_list_length(struct object_list *list) -{ - unsigned ret = 0; - while (list) { - list = list->next; - ret++; - } - return ret; -} - int object_list_contains(struct object_list *list, struct object *obj) { while (list) { -- cgit v1.2.3