Skip to content

Commit 00271bb

Browse files
pks-tgitster
authored andcommitted
config: remove unused the_repository wrappers
Remove the last couple of wrapper functions that implicitly depend on `the_repository`. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a538250 commit 00271bb

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

config.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -718,32 +718,4 @@ NORETURN void git_die_config_linenr(const char *key, const char *filename, int l
718718
lookup_config(mapping, ARRAY_SIZE(mapping), var)
719719
int lookup_config(const char **mapping, int nr_mapping, const char *var);
720720

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-
749721
#endif /* CONFIG_H */

0 commit comments

Comments
 (0)