From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 9FE531F953 for ; Fri, 3 Dec 2021 05:10:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236867AbhLCFNi (ORCPT ); Fri, 3 Dec 2021 00:13:38 -0500 Received: from cloud.peff.net ([104.130.231.41]:42678 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232723AbhLCFNi (ORCPT ); Fri, 3 Dec 2021 00:13:38 -0500 Received: (qmail 21971 invoked by uid 109); 3 Dec 2021 05:10:15 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Fri, 03 Dec 2021 05:10:15 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 28768 invoked by uid 111); 3 Dec 2021 05:10:16 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Fri, 03 Dec 2021 00:10:16 -0500 Authentication-Results: peff.net; auth=none Date: Fri, 3 Dec 2021 00:10:14 -0500 From: Jeff King To: Junio C Hamano Cc: Phillip Wood , git@vger.kernel.org Subject: [PATCH 0/3] unused-parameter cleanups on top of pw/xdiff-classify-record-in-histogram Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Mon, Nov 29, 2021 at 06:16:54PM -0800, Junio C Hamano wrote: > * pw/xdiff-classify-record-in-histogram (2021-11-18) 3 commits > - xdiff: simplify comparison > - xdiff: avoid unnecessary memory allocations > - diff histogram: intern strings > > "diff --histogram" optimization. > > Will merge to 'next'. This being merged to 'next' tickled my -Wunused-parameter topic, so there were a few more opportunities for cleanup. Definitely not urgent, but I think worth doing. Prepared on top of the topic branch. [1/3]: xdiff: drop CMP_ENV macro from xhistogram [2/3]: xdiff: drop xpparam_t parameter from histogram cmp_recs() [3/3]: xdiff: drop unused flags parameter from recs_match xdiff/xdiffi.c | 18 +++++++++--------- xdiff/xhistogram.c | 8 ++------ 2 files changed, 11 insertions(+), 15 deletions(-) -Peff