X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=object.c;h=3ca92c4c4def46af10556dbe9b3f48774b9a4a35;hb=176959d7423988183ffbe1b35fc1de7f786bb596;hp=fe8eaaf19f71b48d9acba83594d918fc4875f5c4;hpb=a42332c21723fde9f36b579f6b39a23aa1aac137;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) {