Commit ded4ccab01e465018da7f9020d20d140ae270ba8

Edward Thomson 2015-06-29T15:16:22

iterator_walk: drop unused variable

diff --git a/src/iterator.c b/src/iterator.c
index 9499493..2c3a87a 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -1852,7 +1852,6 @@ int git_iterator_walk(
 	const git_index_entry **iterator_item;	/* next in each iterator */
 	const git_index_entry **cur_items;		/* current path in each iter */
 	const git_index_entry *first_match;
-	int cur_item_modified;
 	size_t i, j;
 	int error = 0;
 
@@ -1875,7 +1874,6 @@ int git_iterator_walk(
 			cur_items[i] = NULL;
 
 		first_match = NULL;
-		cur_item_modified = 0;
 
 		/* Find the next path(s) to consume from each iterator */
 		for (i = 0; i < cnt; i++) {
@@ -1898,9 +1896,6 @@ int git_iterator_walk(
 
 					first_match = iterator_item[i];
 					cur_items[i] = iterator_item[i];
-				} else if (path_diff > 0) {
-					/* No entry for the current item, this is modified */
-					cur_item_modified = 1;
 				} else if (path_diff == 0) {
 					cur_items[i] = iterator_item[i];
 				}