mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
do_for_each_ref_in_dirs(): remove dead code
There is no way to drop out of the while loop. This code has been
dead since 432ad41e
.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
3feb4f0cfb
commit
b830f6c66b
7
refs.c
7
refs.c
|
@ -667,13 +667,6 @@ static int do_for_each_ref_in_dirs(struct ref_dir *dir1,
|
|||
if (retval)
|
||||
return retval;
|
||||
}
|
||||
if (i1 < dir1->nr)
|
||||
return do_for_each_ref_in_dir(dir1, i1,
|
||||
base, fn, trim, flags, cb_data);
|
||||
if (i2 < dir2->nr)
|
||||
return do_for_each_ref_in_dir(dir2, i2,
|
||||
base, fn, trim, flags, cb_data);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue