From: Dominik Vogt Date: Tue, 12 May 2015 11:27:52 +0000 (+0000) Subject: Remove dead code in print_z_candidates. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eed4068d5d3916f9560246873069bfaaf7b75afe;p=gcc.git Remove dead code in print_z_candidates. 2015-05-12 Dominik Vogt * call.c (print_z_candidates): Remove dead code. From-SVN: r223057 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06618fa7311..5313de1a1b1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-05-12 Dominik Vogt + + * call.c (print_z_candidates): Remove dead code. + 2015-05-12 Andreas Krebbel * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int diff --git a/gcc/cp/call.c b/gcc/cp/call.c index b77f69a267e..07ccea99971 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -3436,7 +3436,6 @@ print_z_candidates (location_t loc, struct z_candidate *candidates) { struct z_candidate *cand1; struct z_candidate **cand2; - int n_candidates; if (!candidates) return; @@ -3478,9 +3477,6 @@ print_z_candidates (location_t loc, struct z_candidate *candidates) } } - for (n_candidates = 0, cand1 = candidates; cand1; cand1 = cand1->next) - n_candidates++; - for (; candidates; candidates = candidates->next) print_z_candidate (loc, "candidate:", candidates); }