Remove unused member in struct object_context
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:25:31 +0000 (00:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:59:49 +0000 (13:59 +0900)
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>
cache.h
sha1_name.c
diff --git a/cache.h b/cache.h
index 4bca177cf3fe2200b89a8e51f16cb0f36263d8cf..11a989319d820c5598f41c1752c369ed3779f902 100644 (file)
--- 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,
index 5b93bf8da36939376b506f96624f568875397969..7043652a24da031e03facd8a5b95fce4abce7b77 100644 (file)
@@ -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);