Skip to content

Commit 18d1e70

Browse files
author
Junio C Hamano
committed
struct tree: remove unused field "parent"
The field is not used anymore, after the recent ls-tree rewrite. Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent f83df6d commit 18d1e70

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

tree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size)
200200
}
201201
if (obj)
202202
n_refs++;
203-
entry->parent = NULL; /* needs to be filled by the user */
204203
*list_p = entry;
205204
list_p = &entry->next;
206205
}

tree.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ struct tree_entry_list {
1818
struct tree *tree;
1919
struct blob *blob;
2020
} item;
21-
struct tree_entry_list *parent;
2221
};
2322

2423
struct tree {

0 commit comments

Comments
 (0)