Skip to content

Commit 06c7a43

Browse files
chriscoolgitster
authored andcommitted
upload-pack: remove unused 'wants' from upload_pack_data
As we cleanup 'upload-pack.c' by using 'struct upload_pack_data' more thoroughly, let's remove 'struct object_array wants' from 'struct upload_pack_data', as it appears to be unused. Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent efcab5b commit 06c7a43

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

upload-pack.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,6 @@ void upload_pack(struct upload_pack_options *options)
11311131
}
11321132

11331133
struct upload_pack_data {
1134-
struct object_array wants;
11351134
struct string_list wanted_refs;
11361135
struct oid_array haves;
11371136

@@ -1157,14 +1156,12 @@ struct upload_pack_data {
11571156

11581157
static void upload_pack_data_init(struct upload_pack_data *data)
11591158
{
1160-
struct object_array wants = OBJECT_ARRAY_INIT;
11611159
struct string_list wanted_refs = STRING_LIST_INIT_DUP;
11621160
struct oid_array haves = OID_ARRAY_INIT;
11631161
struct object_array shallows = OBJECT_ARRAY_INIT;
11641162
struct string_list deepen_not = STRING_LIST_INIT_DUP;
11651163

11661164
memset(data, 0, sizeof(*data));
1167-
data->wants = wants;
11681165
data->wanted_refs = wanted_refs;
11691166
data->haves = haves;
11701167
data->shallows = shallows;
@@ -1174,7 +1171,6 @@ static void upload_pack_data_init(struct upload_pack_data *data)
11741171

11751172
static void upload_pack_data_clear(struct upload_pack_data *data)
11761173
{
1177-
object_array_clear(&data->wants);
11781174
string_list_clear(&data->wanted_refs, 1);
11791175
oid_array_clear(&data->haves);
11801176
object_array_clear(&data->shallows);

0 commit comments

Comments
 (0)