@@ -304,16 +304,10 @@ static int graph_read_oid_lookup(const unsigned char *chunk_start,
return 0;
}
-struct graph_read_bloom_data_context {
- struct commit_graph *g;
- int *commit_graph_changed_paths_version;
-};
-
static int graph_read_bloom_data(const unsigned char *chunk_start,
size_t chunk_size, void *data)
{
- struct graph_read_bloom_data_context *c = data;
- struct commit_graph *g = c->g;
+ struct commit_graph *g = data;
uint32_t hash_version;
hash_version = get_be32(chunk_start);
@@ -405,14 +399,10 @@ struct commit_graph *parse_commit_graph(struct repo_settings *s,
}
if (s->commit_graph_changed_paths_version) {
- struct graph_read_bloom_data_context context = {
- .g = graph,
- .commit_graph_changed_paths_version = &s->commit_graph_changed_paths_version
- };
pair_chunk(cf, GRAPH_CHUNKID_BLOOMINDEXES,
&graph->chunk_bloom_indexes);
read_chunk(cf, GRAPH_CHUNKID_BLOOMDATA,
- graph_read_bloom_data, &context);
+ graph_read_bloom_data, graph);
}
if (graph->chunk_bloom_indexes && graph->chunk_bloom_data) {