git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GSoC PATCH] environment.h: remove unused variables
@ 2025-04-05 16:45 Arnav Bhate
  2025-04-07  8:03 ` Patrick Steinhardt
  0 siblings, 1 reply; 2+ messages in thread
From: Arnav Bhate @ 2025-04-05 16:45 UTC (permalink / raw)
  To: git

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.

Signed-off-by: Arnav Bhate <bhatearnav@gmail.com>
---
 environment.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/environment.h b/environment.h
index 45e690f203..cf6fc04e70 100644
--- a/environment.h
+++ b/environment.h
@@ -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;
-- 
2.49.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [GSoC PATCH] environment.h: remove unused variables
  2025-04-05 16:45 [GSoC PATCH] environment.h: remove unused variables Arnav Bhate
@ 2025-04-07  8:03 ` Patrick Steinhardt
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Steinhardt @ 2025-04-07  8:03 UTC (permalink / raw)
  To: Arnav Bhate; +Cc: git

On Sat, Apr 05, 2025 at 10:15:32PM +0530, Arnav Bhate wrote:
> 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.
> 
> Signed-off-by: Arnav Bhate <bhatearnav@gmail.com>
> ---
>  environment.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/environment.h b/environment.h
> index 45e690f203..cf6fc04e70 100644
> --- a/environment.h
> +++ b/environment.h
> @@ -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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-07  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-05 16:45 [GSoC PATCH] environment.h: remove unused variables Arnav Bhate
2025-04-07  8:03 ` Patrick Steinhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).