From patchwork Thu Jul 28 17:55:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gab Charette X-Patchwork-Id: 107293 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]) by ozlabs.org (Postfix) with SMTP id 8EE20B6F62 for ; Fri, 29 Jul 2011 03:55:37 +1000 (EST) Received: (qmail 10283 invoked by alias); 28 Jul 2011 17:55:33 -0000 Received: (qmail 10267 invoked by uid 22791); 28 Jul 2011 17:55:31 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Jul 2011 17:55:17 +0000 Received: from kpbe18.cbf.corp.google.com (kpbe18.cbf.corp.google.com [172.25.105.82]) by smtp-out.google.com with ESMTP id p6SHtESP008775; Thu, 28 Jul 2011 10:55:14 -0700 Received: from gchare.mtv.corp.google.com (gchare.mtv.corp.google.com [172.18.111.122]) by kpbe18.cbf.corp.google.com with ESMTP id p6SHt7Th000696; Thu, 28 Jul 2011 10:55:07 -0700 Received: by gchare.mtv.corp.google.com (Postfix, from userid 138564) id EEEA01C1E3A; Thu, 28 Jul 2011 10:55:06 -0700 (PDT) To: reply@codereview.appspotmail.com, crowl@google.com, dnovillo@google.com, dodji@seketeli.org, gcc-patches@gcc.gnu.org Subject: Remove unused line_maps field last_listed (issue4810058) Message-Id: <20110728175506.EEEA01C1E3A@gchare.mtv.corp.google.com> Date: Thu, 28 Jul 2011 10:55:06 -0700 (PDT) From: gchare@google.com (Gabriel Charette) X-System-Of-Record: true X-IsSubscribed: yes 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 The last_listed field in struct line_maps was never used, removed it. Gab 2011-07-28 Gabriel Charette * libcpp/include/line-map.h (struct line_maps): Remove unused field last_listed. --- This patch is available for review at http://codereview.appspot.com/4810058 diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h index 3234423..f1d5bee 100644 --- a/libcpp/include/line-map.h +++ b/libcpp/include/line-map.h @@ -76,11 +76,6 @@ struct GTY(()) line_maps { unsigned int cache; - /* The most recently listed include stack, if any, starts with - LAST_LISTED as the topmost including file. -1 indicates nothing - has been listed yet. */ - int last_listed; - /* Depth of the include stack, including the current file. */ unsigned int depth; diff --git a/libcpp/line-map.c b/libcpp/line-map.c index 86e2484..dd3f11c 100644 --- a/libcpp/line-map.c +++ b/libcpp/line-map.c @@ -34,7 +34,6 @@ linemap_init (struct line_maps *set) set->maps = NULL; set->allocated = 0; set->used = 0; - set->last_listed = -1; set->trace_includes = false; set->depth = 0; set->cache = 0;