From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58179 invoked by alias); 4 May 2015 11:50:31 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 58161 invoked by uid 89); 4 May 2015 11:50:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: e06smtp11.uk.ibm.com Received: from e06smtp11.uk.ibm.com (HELO e06smtp11.uk.ibm.com) (195.75.94.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 04 May 2015 11:50:29 +0000 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 4 May 2015 12:50:25 +0100 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 4 May 2015 12:50:22 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id DE4321B08061 for ; Mon, 4 May 2015 12:51:03 +0100 (BST) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t44BoM1o10092980 for ; Mon, 4 May 2015 11:50:22 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t44BoMnb028277 for ; Mon, 4 May 2015 05:50:22 -0600 Received: from bl3ahm9f.de.ibm.com (dyn-9-152-212-131.boeblingen.de.ibm.com [9.152.212.131]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t44BoLnP028272; Mon, 4 May 2015 05:50:22 -0600 Received: from dvogt by bl3ahm9f.de.ibm.com with local (Exim 4.76) (envelope-from ) id 1YpEtB-0007t5-8y; Mon, 04 May 2015 13:50:21 +0200 Date: Mon, 04 May 2015 11:50:00 -0000 From: Dominik Vogt To: gcc-patches@gcc.gnu.org Cc: Andreas Krebbel Subject: [PATCH] Remove dead code. Message-ID: <20150504115021.GA29913@linux.vnet.ibm.com> Reply-To: vogt@linux.vnet.ibm.com Mail-Followup-To: gcc-patches@gcc.gnu.org, Andreas Krebbel MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="61jdw2sOBCFtR2d/" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15050411-0041-0000-0000-000004473091 X-SW-Source: 2015-05/txt/msg00210.txt.bz2 --61jdw2sOBCFtR2d/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 241 This patch removes a "write only" variable from the C++ code. ChangeLog: -- 2015-05-04 Dominik Vogt * call.c (print_z_candidates): Remove dead code. -- Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany --61jdw2sOBCFtR2d/ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Remove-dead-code.patch" Content-length: 897 >From 6943ad84a5a5b69c7cf5df1ea5bb6ab5fd254825 Mon Sep 17 00:00:00 2001 From: Dominik Vogt 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 --61jdw2sOBCFtR2d/--