X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=object.c;h=3ca92c4c4def46af10556dbe9b3f48774b9a4a35;hb=8d9e7d5293d6a8b50c9e0eb8e23ef5fed45c86d0;hp=fe8eaaf19f71b48d9acba83594d918fc4875f5c4;hpb=92246f6bcf41f1287009e73fc501c36ae9fdeeb4;p=git.git diff --git a/object.c b/object.c index fe8eaaf19..3ca92c4c4 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) {