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>
brian m. carlson committed
May 2, 2018 at 00:25 UTC
c51c39418bb754c7884be4d7dcef93ecab967c40
2 files changed
-2
cache.h
-1
@@ -1572,7 +1572,6 @@ struct pack_window {
1572
1573
struct pack_entry {
1574
off_t offset;
1575
- unsigned char sha1[20];
1575
struct packed_git *p;
1576
};
1577
packfile.c
-1
@@ -1833,7 +1833,6 @@ static int fill_pack_entry(const unsigned char *sha1,
1833
return 0;
1834
e->offset = offset;
1835
e->p = p;
1836
- hashcpy(e->sha1, sha1);
1836
return 1;
1837
}
1838