From: brian m. carlson Date: Wed, 2 May 2018 00:25:31 +0000 (+0000) Subject: Remove unused member in struct object_context X-Git-Tag: v2.18.0-rc0~17^2~39 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6f13fd0ec67c8a6c7cc93a4d18fd98f3429e8413 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 Signed-off-by: Junio C Hamano --- diff --git a/cache.h b/cache.h index 4bca177cf3..11a989319d 100644 --- a/cache.h +++ b/cache.h @@ -1306,7 +1306,6 @@ static inline int hex2chr(const char *s) #define FALLBACK_DEFAULT_ABBREV 7 struct object_context { - unsigned char tree[20]; unsigned mode; /* * symlink_path is only used by get_tree_entry_follow_symlinks, diff --git a/sha1_name.c b/sha1_name.c index 5b93bf8da3..7043652a24 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -1698,7 +1698,6 @@ static int get_oid_with_context_1(const char *name, name, len); } } - hashcpy(oc->tree, tree_oid.hash); if (flags & GET_OID_RECORD_PATH) oc->path = xstrdup(filename);