diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-05-02 00:25:32 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-02 13:59:49 +0900 |
commit | c51c39418bb754c7884be4d7dcef93ecab967c40 (patch) | |
tree | 880a7c5897a63bb5c071514ad0223d38aa1d1d7d /packfile.c | |
parent | Remove unused member in struct object_context (diff) | |
download | tgif-c51c39418bb754c7884be4d7dcef93ecab967c40.tar.xz |
packfile: remove unused member from struct pack_entry
The sha1 member in struct pack_entry is unused except for one instance
in which we store a value in it. Since nobody ever reads this value,
don't bother to compute it and remove the member from struct pack_entry.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.c')
-rw-r--r-- | packfile.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/packfile.c b/packfile.c index 0bc67d0e00..5c219d0229 100644 --- a/packfile.c +++ b/packfile.c @@ -1833,7 +1833,6 @@ static int fill_pack_entry(const unsigned char *sha1, return 0; e->offset = offset; e->p = p; - hashcpy(e->sha1, sha1); return 1; } |