summaryrefslogtreecommitdiff
path: root/server-info.c
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2018-05-02 00:25:30 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-02 13:59:48 +0900
commit910710bb95f2678cdc8b6400fbb0a40c279c3e7f (patch)
tree7a839ee9719d76461a16e1cb411dad55c13f0e48 /server-info.c
parentcache: add a function to read an object ID from a buffer (diff)
downloadtgif-910710bb95f2678cdc8b6400fbb0a40c279c3e7f.tar.xz
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>
Diffstat (limited to 'server-info.c')
-rw-r--r--server-info.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/server-info.c b/server-info.c
index 83460ec0d6..7ce6dcd67b 100644
--- a/server-info.c
+++ b/server-info.c
@@ -92,8 +92,6 @@ static struct pack_info {
int old_num;
int new_num;
int nr_alloc;
- int nr_heads;
- unsigned char (*head)[20];
} **info;
static int num_pack;
static const char *objdir;
@@ -225,12 +223,9 @@ static void init_pack_info(const char *infofile, int force)
else
stale = 1;
- for (i = 0; i < num_pack; i++) {
- if (stale) {
+ for (i = 0; i < num_pack; i++)
+ if (stale)
info[i]->old_num = -1;
- info[i]->nr_heads = 0;
- }
- }
/* renumber them */
QSORT(info, num_pack, compare_info);