config: remove git_config_maybe_bool

The function was deprecated in commit 89576613 ("treewide: deprecate git_config_maybe_bool, use git_parse_maybe_bool", 2017-08-07) and has no users. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Martin Ågren committed Sep 5, 2017 at 20:39 UTC d389028695940f74c62e2d8207432feb96f4262a
3 files changed -10
Documentation/technical/api-config.txt
-4
@@ -186,10 +186,6 @@ parsing is successful, the return value is the result.
186 Same as `git_config_bool`, except that integers are returned as-is, and
187 an `is_bool` flag is unset.
188
189 -`git_config_maybe_bool`::
190 -Deprecated. Use `git_parse_maybe_bool` instead. They are exactly the
191 -same, except this function takes an unused argument `name`.
192 -
189 `git_parse_maybe_bool`::
190 Same as `git_config_bool`, except that it returns -1 on error rather
191 than dying.
config.c
-5
@@ -956,11 +956,6 @@ int git_parse_maybe_bool(const char *value)
956 return -1;
957 }
958
959 -int git_config_maybe_bool(const char *name, const char *value)
960 -{
961 - return git_parse_maybe_bool(value);
962 -}
963 -
959 int git_config_bool_or_int(const char *name, const char *value, int *is_bool)
960 {
961 int v = git_parse_maybe_bool_text(value);
config.h
-1
@@ -56,7 +56,6 @@ extern unsigned long git_config_ulong(const char *, const char *);
56 extern ssize_t git_config_ssize_t(const char *, const char *);
57 extern int git_config_bool_or_int(const char *, const char *, int *);
58 extern int git_config_bool(const char *, const char *);
59 -extern int git_config_maybe_bool(const char *, const char *);
59 extern int git_config_string(const char **, const char *, const char *);
60 extern int git_config_pathname(const char **, const char *, const char *);
61 extern int git_config_set_in_file_gently(const char *, const char *, const char *);