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: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 724CB1F729 for ; Sun, 19 Jun 2022 03:53:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234045AbiFSDxi (ORCPT ); Sat, 18 Jun 2022 23:53:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233825AbiFSDw2 (ORCPT ); Sat, 18 Jun 2022 23:52:28 -0400 Received: from cloud.peff.net (cloud.peff.net [104.130.231.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85B5B11A2F for ; Sat, 18 Jun 2022 20:52:27 -0700 (PDT) Received: (qmail 23634 invoked by uid 109); 19 Jun 2022 03:52:26 -0000 Received: from Unknown (HELO sigill.intra.peff.net) (10.0.0.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Sun, 19 Jun 2022 03:52:26 +0000 Authentication-Results: cloud.peff.net; auth=none Date: Sat, 18 Jun 2022 23:52:25 -0400 From: Jeff King To: git@vger.kernel.org Cc: Derrick Stolee Subject: [PATCH 0/2] extra cleanups on top of ds/branch-checked-out Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Here are a few extra cleanups on top of ds/branch-checked-out; that topic made some local "worktrees" variables obsolete, but didn't get rid of them. The first was detected by my local -Wunused-parameter topic. The second is a similar case that the compiler doesn't happen to notice, but which I went digging for after seeing the first. I think that should be the extent of it. There's a third caller in validate_new_branchname(), but the series already got rid of its worktrees variable. [1/2]: fetch: stop passing around unused worktrees variable [2/2]: branch: drop unused worktrees variable builtin/branch.c | 4 ---- builtin/fetch.c | 24 +++++++++--------------- 2 files changed, 9 insertions(+), 19 deletions(-) -Peff