From patchwork Mon May 4 11:50:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Vogt X-Patchwork-Id: 467582 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 52581140295 for ; Mon, 4 May 2015 21:50:39 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=trd/bQO2; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; q=dns; s=default; b=uumEjNL5IXLi93vJxP1DGYl1xH8HX QS0PJSu6aFzggErEUIxloFYvDjqyS3zm3zp0OSOvRIEbPqdgR1g9zoKkRhnMnemS 3IY6yUVSoXUAneV0YvW6fg8eT4QjM1vpW4FpDxnsYEIQ0yoK633h91sNFjPwWDRI pPYSDlHMayxoec= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; s=default; bh=Qsq2ltiGH/ZX9dl0I+lP87cl0Io=; b=trd /bQO2v+o/w5N6fdCZiCdswnQ2MTfmIx+jwDvDGdMiRTpFoIGf+KBftyqfhkCkY7W Ui4Ha4E/ziSEsENMQJBk2Tza8a/+1LCz5AY3FJyu8f2cYn+gFGnWmBijvgFyN648 FPmLqyxV+tzsqzd/Pwqr+gzdekm5RQGZkKh9LSEI= 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-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@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, 4 May 2015 12:50:21 +0100 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-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 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 ^_^ ^_^ 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