config: make git_configset_get_string_tmp() private
This method was created in f1de981e8
(config: fix leaks from
git_config_get_string_const(), 2020-08-14) but its only use was in the
repo_config_get_string_tmp() method, also declared in config.h and
implemented in config.c. Since this is otherwise unused and is a very
similar implementation to git_configset_get_value(), let's remove this
declaration.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
53255916b7
commit
3ce1138272
4
config.c
4
config.c
@ -2179,8 +2179,8 @@ int git_configset_get_string(struct config_set *cs, const char *key, char **dest
|
||||
return 1;
|
||||
}
|
||||
|
||||
int git_configset_get_string_tmp(struct config_set *cs, const char *key,
|
||||
const char **dest)
|
||||
static int git_configset_get_string_tmp(struct config_set *cs, const char *key,
|
||||
const char **dest)
|
||||
{
|
||||
const char *value;
|
||||
if (!git_configset_get_value(cs, key, &value)) {
|
||||
|
Reference in New Issue
Block a user