repository.h: drop unused `gc_cruft_packs`

As of the previous commit, all callers that need to read the value of `gc.cruftPacks` do so outside without using the `repo_settings` struct, making its `gc_cruft_packs` unused. Drop it accordingly. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Apr 18, 2023 at 16:41 UTC 029a632c35861b3395c71e767d80bbf463dc1ae1
2 files changed +1 -4
repo-settings.c
+1 -3
@@ -41,10 +41,8 @@ void prepare_repo_settings(struct repository *r)
41 repo_cfg_bool(r, "feature.experimental", &experimental, 0);
42
43 /* Defaults modified by feature.* */
44 - if (experimental) {
44 + if (experimental)
45 r->settings.fetch_negotiation_algorithm = FETCH_NEGOTIATION_SKIPPING;
46 - r->settings.gc_cruft_packs = 1;
47 - }
46 if (manyfiles) {
47 r->settings.index_version = 4;
48 r->settings.index_skip_hash = 1;
repository.h
-1
@@ -33,7 +33,6 @@ struct repo_settings {
33 int commit_graph_generation_version;
34 int commit_graph_read_changed_paths;
35 int gc_write_commit_graph;
36 - int gc_cruft_packs;
36 int fetch_write_commit_graph;
37 int command_requires_full_index;
38 int sparse_index;