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>
brian m. carlson committed
May 2, 2018 at 00:25 UTC
6f13fd0ec67c8a6c7cc93a4d18fd98f3429e8413
2 files changed
-2
cache.h
-1
@@ -1306,7 +1306,6 @@ static inline int hex2chr(const char *s)
1306
#define FALLBACK_DEFAULT_ABBREV 7
1307
1308
struct object_context {
1309
- unsigned char tree[20];
1309
unsigned mode;
1310
/*
1311
* symlink_path is only used by get_tree_entry_follow_symlinks,
sha1_name.c
-1
@@ -1698,7 +1698,6 @@ static int get_oid_with_context_1(const char *name,
1698
name, len);
1699
}
1700
}
1701
- hashcpy(oc->tree, tree_oid.hash);
1701
if (flags & GET_OID_RECORD_PATH)
1702
oc->path = xstrdup(filename);
1703