From 029a632c35861b3395c71e767d80bbf463dc1ae1 Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Tue, 18 Apr 2023 16:41:00 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- repo-settings.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'repo-settings.c') diff --git a/repo-settings.c b/repo-settings.c index 0a6c0b381f..a8d0b98794 100644 --- a/repo-settings.c +++ b/repo-settings.c @@ -41,10 +41,8 @@ void prepare_repo_settings(struct repository *r) repo_cfg_bool(r, "feature.experimental", &experimental, 0); /* Defaults modified by feature.* */ - if (experimental) { + if (experimental) r->settings.fetch_negotiation_algorithm = FETCH_NEGOTIATION_SKIPPING; - r->settings.gc_cruft_packs = 1; - } if (manyfiles) { r->settings.index_version = 4; r->settings.index_skip_hash = 1; -- cgit v1.2.3