This variable is just stored to after parsing `core.compression` and then ignored, so it can just be completely removed. Signed-off-by: Ben Boeckel <mathstuf@xxxxxxxxx> --- cache.h | 1 - config.c | 1 - environment.c | 1 - 3 files changed, 3 deletions(-) diff --git a/cache.h b/cache.h index dc6c4172cb..4fd134863c 100644 --- a/cache.h +++ b/cache.h @@ -947,7 +947,6 @@ extern int warn_on_object_refname_ambiguity; extern const char *git_attributes_file; extern const char *git_hooks_path; extern int zlib_compression_level; -extern int core_compression_level; extern int pack_compression_level; extern size_t packed_git_window_size; extern size_t packed_git_limit; diff --git a/config.c b/config.c index c45001adbe..b241a56cfb 100644 --- a/config.c +++ b/config.c @@ -1401,7 +1401,6 @@ static int git_default_core_config(const char *var, const char *value, void *cb) level = Z_DEFAULT_COMPRESSION; else if (level < 0 || level > Z_BEST_COMPRESSION) die(_("bad zlib compression level %d"), level); - core_compression_level = level; core_compression_seen = 1; if (!zlib_compression_seen) zlib_compression_level = level; diff --git a/environment.c b/environment.c index 0cc086d847..3b995434fc 100644 --- a/environment.c +++ b/environment.c @@ -39,7 +39,6 @@ const char *git_log_output_encoding; const char *git_attributes_file; const char *git_hooks_path; int zlib_compression_level = Z_BEST_SPEED; -int core_compression_level; int pack_compression_level = Z_DEFAULT_COMPRESSION; int fsync_object_files; size_t packed_git_window_size = DEFAULT_PACKED_GIT_WINDOW_SIZE; -- 2.31.1