@matheusbsbs / matheus-bagliano / commits / c76189875b
Fork 0

object.c: remove unused functions

object_list_append() and object_list_length}() are not used anywhere. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jan 11, 2010 at 21:15 UTC c76189875b35ca04d42df915cd902a33fdbcb9b0
2 files changed -26
object.c
-21
@@ -217,27 +217,6 @@ struct object_list *object_list_insert(struct object *item,
217 return new_list;
218 }
219
220 -void object_list_append(struct object *item,
221 - struct object_list **list_p)
222 -{
223 - while (*list_p) {
224 - list_p = &((*list_p)->next);
225 - }
226 - *list_p = xmalloc(sizeof(struct object_list));
227 - (*list_p)->next = NULL;
228 - (*list_p)->item = item;
229 -}
230 -
231 -unsigned object_list_length(struct object_list *list)
232 -{
233 - unsigned ret = 0;
234 - while (list) {
235 - list = list->next;
236 - ret++;
237 - }
238 - return ret;
239 -}
240 -
220 int object_list_contains(struct object_list *list, struct object *obj)
221 {
222 while (list) {
object.h
-5
@@ -72,11 +72,6 @@ struct object *lookup_unknown_object(const unsigned char *sha1);
72 struct object_list *object_list_insert(struct object *item,
73 struct object_list **list_p);
74
75 -void object_list_append(struct object *item,
76 - struct object_list **list_p);
77 -
78 -unsigned object_list_length(struct object_list *list);
79 -
75 int object_list_contains(struct object_list *list, struct object *obj);
76
77 /* Object array handling .. */