This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Remove dead code.
- From: Dominik Vogt <vogt at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- Date: Mon, 4 May 2015 12:50:21 +0100
- Subject: [PATCH] Remove dead code.
- Authentication-results: sourceware.org; auth=none
- Reply-to: vogt at linux dot vnet dot ibm dot com
This patch removes a "write only" variable from the C++ code.
ChangeLog:
--
2015-05-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
* call.c (print_z_candidates): Remove dead code.
--
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany
>From 6943ad84a5a5b69c7cf5df1ea5bb6ab5fd254825 Mon Sep 17 00:00:00 2001
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
Date: Mon, 4 May 2015 12:46:21 +0100
Subject: [PATCH] Remove dead code.
---
gcc/cp/call.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 31d2b9c..55350f8 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);
}
--
2.3.0