config: get rid of a useless asignment
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
diff --git a/src/config_file.c b/src/config_file.c
index 4e564a5..7c22be4 100644
--- a/src/config_file.c
+++ b/src/config_file.c
@@ -268,12 +268,10 @@ static int config_iterator_next(
diskfile_backend *b = (diskfile_backend *) it->parent.backend;
int err = 0;
cvar_t * var;
- const char* key;
if (it->next_var == NULL) {
- err = git_strmap_next(&key, (void**) &var, &(it->iter), b->values);
+ err = git_strmap_next((void**) &var, &(it->iter), b->values);
} else {
- key = it->next_var->entry->name;
var = it->next_var;
}
diff --git a/src/strmap.c b/src/strmap.c
index 1b07359..b26a13d 100644
--- a/src/strmap.c
+++ b/src/strmap.c
@@ -8,7 +8,6 @@
#include "strmap.h"
int git_strmap_next(
- const char **key,
void **data,
git_strmap_iter* iter,
git_strmap *map)
@@ -22,7 +21,6 @@ int git_strmap_next(
continue;
}
- *key = git_strmap_key(map, *iter);
*data = git_strmap_value_at(map, *iter);
++(*iter);
diff --git a/src/strmap.h b/src/strmap.h
index cb079b5..8276ab4 100644
--- a/src/strmap.h
+++ b/src/strmap.h
@@ -68,7 +68,6 @@ typedef khiter_t git_strmap_iter;
#define git_strmap_end kh_end
int git_strmap_next(
- const char **key,
void **data,
git_strmap_iter* iter,
git_strmap *map);