diff options
author | Martin Koegler <mkoegler@auto.tuwien.ac.at> | 2008-02-25 22:46:06 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-26 08:57:35 +0100 |
commit | 7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1 (patch) | |
tree | b8ea9161af89a50853b30a6666762d26576b4932 /commit.c | |
parent | builtin-fsck: move away from object-refs to fsck_walk (diff) | |
download | git-7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1.tar.xz git-7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1.zip |
Remove unused object-ref code
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
-rw-r--r-- | commit.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -290,17 +290,6 @@ int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size) } item->date = parse_commit_date(bufptr, tail); - if (track_object_refs) { - unsigned i = 0; - struct commit_list *p; - struct object_refs *refs = alloc_object_refs(n_refs); - if (item->tree) - refs->ref[i++] = &item->tree->object; - for (p = item->parents; p; p = p->next) - refs->ref[i++] = &p->item->object; - set_object_refs(&item->object, refs); - } - return 0; } |