Skip to content

Commit 3770bf6

Browse files
Remove unused wditer variable
Found this randomly while debugging libgit2#6517
1 parent 25ec373 commit 3770bf6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/libgit2/index.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3397,7 +3397,6 @@ int git_index_add_all(
33973397
{
33983398
int error;
33993399
git_repository *repo;
3400-
git_iterator *wditer = NULL;
34013400
git_pathspec ps;
34023401
bool no_fnmatch = (flags & GIT_INDEX_ADD_DISABLE_PATHSPEC_MATCH) != 0;
34033402

@@ -3423,7 +3422,6 @@ int git_index_add_all(
34233422
git_error_set_after_callback(error);
34243423

34253424
cleanup:
3426-
git_iterator_free(wditer);
34273425
git_pathspec__clear(&ps);
34283426

34293427
return error;

0 commit comments

Comments
 (0)