summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-12 05:15:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-18 06:49:36 (GMT)
commitc76189875b35ca04d42df915cd902a33fdbcb9b0 (patch)
treefaa69b38052f85b9266e1cd9c35234f33ec67de6 /object.c
parent229d8107470ded5e5e6c43cf5daeabf382cce9d1 (diff)
downloadgit-c76189875b35ca04d42df915cd902a33fdbcb9b0.zip
git-c76189875b35ca04d42df915cd902a33fdbcb9b0.tar.gz
git-c76189875b35ca04d42df915cd902a33fdbcb9b0.tar.bz2
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>
Diffstat (limited to 'object.c')
-rw-r--r--object.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/object.c b/object.c
index fe8eaaf..3ca92c4 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) {