remove_branches(): remove temporary

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Jun 22, 2015 at 16:02 UTC b4c4af832bc27afab472f67bdd58ecbf290dcb2f
1 file changed +1 -2
builtin/remote.c
+1 -2
@@ -756,8 +756,7 @@ static int remove_branches(struct string_list *branches)
756 strbuf_release(&err);
757
758 for (i = 0; i < branches->nr; i++) {
759 - struct string_list_item *item = branches->items + i;
760 - const char *refname = item->string;
759 + const char *refname = branches->items[i].string;
760
761 if (delete_ref(refname, NULL, 0))
762 result |= error(_("Could not remove branch %s"), refname);