[PATCH 02/41] server-info: remove unused members from struct pack_info
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Apr 23, 2018, 23:39 UTC
- Message-ID
- <20180423233951.276447-3-sandals@crustytoothpaste.net>
- In-Reply-To
- <20180423233951.276447-1-sandals@crustytoothpaste.net>
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. Since these structure members are not useful, remove them.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> --- server-info.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/server-info.c b/server-info.c index 83460ec0d6..828ec5e538 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; @@ -228,7 +226,6 @@ static void init_pack_info(const char *infofile, int force) for (i = 0; i < num_pack; i++) { if (stale) { info[i]->old_num = -1; - info[i]->nr_heads = 0; } }