server-info: remove unused members from struct pack_info

The head member of struct pack_info is completely unused and the nr_heads member is used only in one place, which is an assignment. This member was last usefully used in 3e15c67c90 (server-info: throw away T computation as well, 2005-12-04). Since this structure member is not useful, 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 910710bb95f2678cdc8b6400fbb0a40c279c3e7f
1 file changed +2 -7
server-info.c
+2 -7
@@ -92,8 +92,6 @@ static struct pack_info {
92 int old_num;
93 int new_num;
94 int nr_alloc;
95 - int nr_heads;
96 - unsigned char (*head)[20];
95 } **info;
96 static int num_pack;
97 static const char *objdir;
@@ -225,12 +223,9 @@ static void init_pack_info(const char *infofile, int force)
223 else
224 stale = 1;
225
228 - for (i = 0; i < num_pack; i++) {
229 - if (stale) {
226 + for (i = 0; i < num_pack; i++)
227 + if (stale)
228 info[i]->old_num = -1;
231 - info[i]->nr_heads = 0;
232 - }
233 - }
229
230 /* renumber them */
231 QSORT(info, num_pack, compare_info);