diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-20 14:37:25 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-20 14:37:25 -0800 |
commit | 56eb8b43ebdb38683ff5ce395d7b5e080d402b5b (patch) | |
tree | 759ed075b90f29999e504654e3d92a470e9ab3c0 /object.c | |
parent | Sync with 1.6.6.1 (diff) | |
parent | date.c: mark file-local function static (diff) | |
download | tgif-56eb8b43ebdb38683ff5ce395d7b5e080d402b5b.tar.xz |
Merge branch 'jc/symbol-static'
* jc/symbol-static:
date.c: mark file-local function static
Replace parse_blob() with an explanatory comment
symlinks.c: remove unused functions
object.c: remove unused functions
strbuf.c: remove unused function
sha1_file.c: remove unused function
mailmap.c: remove unused function
utf8.c: mark file-local function static
submodule.c: mark file-local function static
quote.c: mark file-local function static
remote-curl.c: mark file-local function static
read-cache.c: mark file-local functions static
parse-options.c: mark file-local function static
entry.c: mark file-local function static
http.c: mark file-local functions static
pretty.c: mark file-local function static
builtin-rev-list.c: mark file-local function static
bisect.c: mark file-local function static
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -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) { |