config: remove unused `the_repository` wrappers

Remove the last couple of wrapper functions that implicitly depend on `the_repository`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Jul 23, 2025 at 16:08 UTC 00271bb3001fd8732d8afc746f2188f807192e87
1 file changed -28
config.h
-28
@@ -718,32 +718,4 @@ NORETURN void git_die_config_linenr(const char *key, const char *filename, int l
718 lookup_config(mapping, ARRAY_SIZE(mapping), var)
719 int lookup_config(const char **mapping, int nr_mapping, const char *var);
720
721 -# ifdef USE_THE_REPOSITORY_VARIABLE
722 -static inline int git_config_get_bool_or_int(const char *key, int *is_bool, int *dest)
723 -{
724 - return repo_config_get_bool_or_int(the_repository, key, is_bool, dest);
725 -}
726 -
727 -static inline int git_config_get_maybe_bool(const char *key, int *dest)
728 -{
729 - return repo_config_get_maybe_bool(the_repository, key, dest);
730 -}
731 -
732 -static inline int git_config_get_pathname(const char *key, char **dest)
733 -{
734 - return repo_config_get_pathname(the_repository, key, dest);
735 -}
736 -
737 -static inline void git_config_set_multivar_in_file(
738 - const char *config_filename,
739 - const char *key,
740 - const char *value,
741 - const char *value_pattern,
742 - unsigned flags)
743 -{
744 - repo_config_set_multivar_in_file(the_repository, config_filename,
745 - key, value, value_pattern, flags);
746 -}
747 -# endif /* USE_THE_REPOSITORY_VARIABLE */
748 -
721 #endif /* CONFIG_H */