environment.h: remove unused variables
PATCH 1/1 environment.h: remove unused variables
packed_git_window_size and packed_git_limit are not used anywhere in the codebase. A search found that all references were removed in d284713bae (config: make packed_git_(limit|window_size) non-global variables, 2024-12-03), except the ones in this file, as they were moved to struct repo_settings.
Remove packed_git_window_size and packed_git_limit from environment.h.
--- environment.h | 2 -- 1 file changed, 2 deletions(-)
environment.h +0 -2
@@ -152,8 +152,6 @@ extern char *apply_default_ignorewhitespace;extern char *git_attributes_file;extern int zlib_compression_level;extern int pack_compression_level; -extern size_t packed_git_window_size; -extern size_t packed_git_limit;extern unsigned long big_file_threshold;extern unsigned long pack_size_limit_cfg;extern int max_allowed_tree_depth;
Signature · 1 line
2.49.0
Quoted 18 lines · Arnav Bhate
packed_git_window_sizeandpacked_git_limitare not used anywhere in the codebase. A search found that all references were removed ind284713bae(config: makepacked_git_(limit|window_size)non-global variables, 2024-12-03), except the ones in this file, as they were moved to structrepo_settings.Remove
packed_git_window_sizeandpacked_git_limitfromenvironment.h.Signed-off-by Arnav Bhate <[email protected]>--- environment.h | 2 -- 1 file changed, 2 deletions(-)environment.h +0
-0
environment.h extern char *apply_default_ignorewhitespace; · line 157
Quoted 8 lines
environment.h +0
-2@@ -152,8 +152,6 @@ extern char *apply_default_ignorewhitespace;extern char *git_attributes_file;extern int zlib_compression_level;extern int pack_compression_level; -extern size_t packed_git_window_size; -extern size_t packed_git_limit;extern unsigned long big_file_threshold;extern unsigned long pack_size_limit_cfg;extern int max_allowed_tree_depth;
Good catch indeed, the patch looks obviously good to me!
Patrick