From b1d47b464e553331c555f122c5e341dfbfb618bd Mon Sep 17 00:00:00 2001 From: Ayush Chandekar Date: Tue, 10 Jun 2025 18:32:20 +0530 Subject: environment: remove the global variable 'core_preload_index' The global variable 'core_preload_index' is used in a single function named 'preload_index()' in "preload-index.c". Move its declaration inside that function, removing unnecessary global state. This change is part of an ongoing effort to eliminate global variables, improve modularity and help libify the codebase. Mentored-by: Christian Couder Mentored-by: Ghanshyam Thakkar Signed-off-by: Ayush Chandekar Signed-off-by: Junio C Hamano --- environment.h | 1 - 1 file changed, 1 deletion(-) (limited to 'environment.h') diff --git a/environment.h b/environment.h index 3d98461a06..9a3d05d414 100644 --- a/environment.h +++ b/environment.h @@ -155,7 +155,6 @@ extern int pack_compression_level; extern unsigned long pack_size_limit_cfg; extern int max_allowed_tree_depth; -extern int core_preload_index; extern int precomposed_unicode; extern int protect_hfs; extern int protect_ntfs; -- cgit v1.3