Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
do_for_each_ref_in_dirs(): remove dead code
author
Michael Haggerty
<mhagger@alum.mit.edu>
Mon, 22 Apr 2013 19:52:14 +0000
(21:52 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 1 May 2013 22:33:09 +0000
(15:33 -0700)
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>
refs.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
3feb4f0
)
diff --git
a/refs.c
b/refs.c
index 390251476c3108b217c62563fc66b926710bc1c2..ea209e4907be728b4c4f1a3e4a9d7499092a50b0 100644
(file)
--- 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;
}
/*