Skip to content

Commit 6f13fd0

Browse files
bk2204gitster
authored andcommitted
Remove unused member in struct object_context
The tree member of struct object_context is unused except in one place where we write to it. Since there are no users of this member, remove it. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 910710b commit 6f13fd0

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

cache.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,6 @@ static inline int hex2chr(const char *s)
13061306
#define FALLBACK_DEFAULT_ABBREV 7
13071307

13081308
struct object_context {
1309-
unsigned char tree[20];
13101309
unsigned mode;
13111310
/*
13121311
* symlink_path is only used by get_tree_entry_follow_symlinks,

sha1_name.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,6 @@ static int get_oid_with_context_1(const char *name,
16981698
name, len);
16991699
}
17001700
}
1701-
hashcpy(oc->tree, tree_oid.hash);
17021701
if (flags & GET_OID_RECORD_PATH)
17031702
oc->path = xstrdup(filename);
17041703

0 commit comments

Comments
 (0)