{"thread":{"id":"14023","subject":"[PATCH] object.c: remove unused functions","startedAt":"2008-06-18T23:21:08Z","lastAt":"2008-06-18T23:21:08Z","messageCount":1,"participants":["しらいしななこ"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"80268","messageId":"20080619082108.6117@nanako3.lavabit.com","threadId":"14023","inReplyTo":null,"subject":"[PATCH] object.c: remove unused functions","fromName":"しらいしななこ","fromEmail":"nanako3@lavabit.com","sentAt":"2008-06-18T23:21:08Z","receivedAt":"2008-06-18T23:21:08Z","isPatch":true,"sender":{"key":"nanako3@lavabit.com","avatar":"https://gravatar.com/avatar/3777b9e201c5883a62b1a6fdf7c53f2d712d1d80989146063ea861e33aad72a8?d=mp&s=160"},"body":"Removes unused functions object_list_append(), object_list_legnth() and\nbject_list_contains().\n\nSigned-off-by: Nanako Shiraishi <nanako3@lavabit.com>\n---\n\nThis is my first foray into C programming, so please be kind.\n\n object.c |   31 -------------------------------\n object.h |    7 -------\n 2 files changed, 0 insertions(+), 38 deletions(-)\n\ndiff --git a/object.c b/object.c\nindex 50b6528..b386d58 100644\n--- a/object.c\n+++ b/object.c\n@@ -215,37 +215,6 @@ struct object_list *object_list_insert(struct object *item,\n         return new_list;\n }\n \n-void object_list_append(struct object *item,\n-\t\t\tstruct object_list **list_p)\n-{\n-\twhile (*list_p) {\n-\t\tlist_p = &((*list_p)->next);\n-\t}\n-\t*list_p = xmalloc(sizeof(struct object_list));\n-\t(*list_p)->next = NULL;\n-\t(*list_p)->item = item;\n-}\n-\n-unsigned object_list_length(struct object_list *list)\n-{\n-\tunsigned ret = 0;\n-\twhile (list) {\n-\t\tlist = list->next;\n-\t\tret++;\n-\t}\n-\treturn ret;\n-}\n-\n-int object_list_contains(struct object_list *list, struct object *obj)\n-{\n-\twhile (list) {\n-\t\tif (list->item == obj)\n-\t\t\treturn 1;\n-\t\tlist = list->next;\n-\t}\n-\treturn 0;\n-}\n-\n void add_object_array(struct object *obj, const char *name, struct object_array *array)\n {\n \tadd_object_array_with_mode(obj, name, array, S_IFINVALID);\ndiff --git a/object.h b/object.h\nindex 036bd66..8405fd2 100644\n--- a/object.h\n+++ b/object.h\n@@ -61,13 +61,6 @@ struct object *lookup_unknown_object(const unsigned  char *sha1);\n struct object_list *object_list_insert(struct object *item,\n \t\t\t\t       struct object_list **list_p);\n \n-void object_list_append(struct object *item,\n-\t\t\tstruct object_list **list_p);\n-\n-unsigned object_list_length(struct object_list *list);\n-\n-int object_list_contains(struct object_list *list, struct object *obj);\n-\n /* Object array handling .. */\n void add_object_array(struct object *obj, const char *name, struct object_array *array);\n void add_object_array_with_mode(struct object *obj, const char *name, struct object_array *array, unsigned mode);\n-- \n1.5.5.4\n"}]}