From: Michael Haggerty Date: Mon, 22 Apr 2013 19:52:14 +0000 (+0200) Subject: do_for_each_ref_in_dirs(): remove dead code X-Git-Tag: v1.8.4-rc0~251^2~27 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b830f6c66b2fd635d9cfa318d047917ea987a719;p=git-core%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/refs.c b/refs.c index 390251476..ea209e490 100644 --- a/refs.c +++ b/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; } /*