From patchwork Sun Aug 18 18:27:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?SZEDER_G=C3=A1bor?= X-Patchwork-Id: 11099843 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4C88E13B1 for ; Sun, 18 Aug 2019 18:28:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D0C622B39 for ; Sun, 18 Aug 2019 18:28:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 309A52811E; Sun, 18 Aug 2019 18:28:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB9AC22B39 for ; Sun, 18 Aug 2019 18:28:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727059AbfHRS2P (ORCPT ); Sun, 18 Aug 2019 14:28:15 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38709 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726927AbfHRS2P (ORCPT ); Sun, 18 Aug 2019 14:28:15 -0400 Received: by mail-wm1-f66.google.com with SMTP id m125so1097061wmm.3 for ; Sun, 18 Aug 2019 11:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rOuvYwCPrEvpM1MdzqfsZnAM2NuXgVbgQdSPCyG2SKc=; b=rN7EgwjDiGx5Z/xfdwniwzVJfv5iLdtSt+Wq6XHofwLZYZRMbPWQKgnLzqdYDKPsKe Tyov6ROGX9mYobAhSlzPhgQ9gUBUi2c2TrT0zCEYebkRzrSKE7rC37qO4aXM9m9uV30Q ISX4Pf6Ioy8YE9PgH1Ast6R8w2/NChsA5ZCdbfu14mC6/keIIP4luE0VwCnbJ1ve/Or5 AivFzKZenE6MWN5ZlgIRa5qJALG2LP0SVTJ5z/UtDZNXH03Uu1FqimIhNJa22RWqClHE 93ygKKvI+d1GRq+K21WlqGTrX4r3czXT5vVcnxDcAPqEWir8pNvuEXR0CB1pmn/SzTA8 FX5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rOuvYwCPrEvpM1MdzqfsZnAM2NuXgVbgQdSPCyG2SKc=; b=jKwHnTrXkZocw+xUftuvEuSyhjRkLhDB5asQFSfJKt6sXQmPxQWMOPCUON+abCTOis GD73DgsnLXuh5YzIwy/RH/6F8VnUQBQ9WFm6FwFJwwz6RjoVd+qSPumohCPE1BVmlPdf 1Z1icNW+JLJYVVGARQiu/mePU7LoRu3lpcSfFARGKugtmRWBkFabhyRq+bBZWOBMNF/S fXrOeQVtWXy92oJHCW7JPqQ+e0Q3osPRHe19iok2qT+U+e8dJkxQBKfZFmlaPEMShxLo Vz4mL65zoUKL4VjWG2+dvsNE8ImDRLGoVsCghZfZu8hT5/Ok5W9/Nb0h67uoKw173BEX 6q4w== X-Gm-Message-State: APjAAAVvjg7GGgjul8Lod4K5l1qbSosQVhTiRzojwV7iCygK/Rm4YWkM 8/1+EtU5tJu6AYbxhSoqrBlwtZ36 X-Google-Smtp-Source: APXvYqxo/t4zhzh5WKViAgJ67N8rDuq55/yXQtLIpa9vS2UZTDBpr9zuhFpLCnEZtYs/cvHOyj1YwA== X-Received: by 2002:a1c:6782:: with SMTP id b124mr17642142wmc.143.1566152893183; Sun, 18 Aug 2019 11:28:13 -0700 (PDT) Received: from localhost.localdomain (x4db53457.dyn.telefonica.de. [77.181.52.87]) by smtp.gmail.com with ESMTPSA id c201sm24112584wmd.33.2019.08.18.11.28.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Aug 2019 11:28:12 -0700 (PDT) From: =?utf-8?q?SZEDER_G=C3=A1bor?= To: git@vger.kernel.org Cc: Junio C Hamano , Thomas Rast , Derrick Stolee , =?utf-8?q?SZEDER_G=C3=A1bor?= Subject: [RFC PATCH 2/5] line-log: remove unused fields from 'struct line_log_data' Date: Sun, 18 Aug 2019 20:27:58 +0200 Message-Id: <20190818182801.7580-3-szeder.dev@gmail.com> X-Mailer: git-send-email 2.23.0.349.g73f10e387d In-Reply-To: <20190818182801.7580-1-szeder.dev@gmail.com> References: <20190818182801.7580-1-szeder.dev@gmail.com> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the unused fields 'status', 'arg_alloc', 'arg_nr' and 'args' from 'struct line_log_data'. They were already part of the struct when it was introduced in commit 12da1d1f6 (Implement line-history search (git log -L), 2013-03-28), but as far as I can tell none of them have ever been actually used. Signed-off-by: SZEDER Gábor --- line-log.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/line-log.h b/line-log.h index 8ee7a2bd4a..882c5055bb 100644 --- a/line-log.h +++ b/line-log.h @@ -46,10 +46,7 @@ void sort_and_merge_range_set(struct range_set *); struct line_log_data { struct line_log_data *next; char *path; - char status; struct range_set ranges; - int arg_alloc, arg_nr; - const char **args; struct diff_filepair *pair; struct diff_ranges diff; };