Skip to contentSkip to conversation

config.h: remove unused git_configset_add_parameters()

PATCH In review Ævar Arnfjörð Bjarmason 2 participants 2 messages Feb 7, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config.h: remove unused git_configset_add_parameters()

This function was removed in ecec57b3c97 (config: respect includes in protected config, 2022-10-13), but its prototype was left here.

---

A trivial cleanup for a change new in v2.39.0.

 config.h | 9 ---------
 1 file changed, 9 deletions(-)
config.h +0 -9
index ef9eade6414..7606246531a 100644
@@ -447,15 +447,6 @@ void git_configset_init(struct config_set *cs);
  */
 int git_configset_add_file(struct config_set *cs, const char *filename);
 
-/**
- * Parses command line options and environment variables, and adds the
- * variable-value pairs to the `config_set`. Returns 0 on success, or -1
- * if there is an error in parsing. The caller decides whether to free
- * the incomplete configset or continue using it when the function
- * returns -1.
- */
-int git_configset_add_parameters(struct config_set *cs);
-
 /**
  * Finds and returns the value list, sorted in order of increasing priority
  * for the configuration variable `key` and config set `cs`. When the
Signature · 1 line
2.39.1.1430.gb2471c0aaf4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Ævar Arnfjörð Bjarmason

This function was removed in ecec57b3c97 (config: respect includes in protected config, 2022-10-13), but its prototype was left here.

Ugh, that's my mistake. Thanks for the catch.

Quoted 22 lines
config.h +0 -9
index ef9eade6414..7606246531a 100644
@@ -447,15 +447,6 @@ void git_configset_init(struct config_set *cs);
  */
 int git_configset_add_file(struct config_set *cs, const char *filename);
 
-/**
- * Parses command line options and environment variables, and adds the
- * variable-value pairs to the `config_set`. Returns 0 on success, or -1
- * if there is an error in parsing. The caller decides whether to free
- * the incomplete configset or continue using it when the function
- * returns -1.
- */
-int git_configset_add_parameters(struct config_set *cs);
-
 /**
  * Finds and returns the value list, sorted in order of increasing priority
  * for the configuration variable `key` and config set `cs`. When the
Signature · 1 line
2.39.1.1430.gb2471c0aaf4