1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-14 16:16:13 +02:00

Merge branch 'rb/hashmap-h-compilation-fix' into maint

Code clean-up.

* rb/hashmap-h-compilation-fix:
  hashmap.h: remove unused variable
This commit is contained in:
Junio C Hamano 2018-03-22 14:24:15 -07:00
commit b502aa4f45

View File

@ -400,7 +400,6 @@ static inline void hashmap_disable_item_counting(struct hashmap *map)
*/
static inline void hashmap_enable_item_counting(struct hashmap *map)
{
void *item;
unsigned int n = 0;
struct hashmap_iter iter;
@ -408,7 +407,7 @@ static inline void hashmap_enable_item_counting(struct hashmap *map)
return;
hashmap_iter_init(map, &iter);
while ((item = hashmap_iter_next(&iter)))
while (hashmap_iter_next(&iter))
n++;
map->do_count_items = 1;