From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 0/13] more unused parameter cleanups
Date: Wed, 20 Mar 2019 18:29:23 +0900 [thread overview]
Message-ID: <xmqqr2b1vqq4.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <20190320081258.GA5621@sigill.intra.peff.net> (Jeff King's message of "Wed, 20 Mar 2019 04:12:58 -0400")
Jeff King <peff@peff.net> writes:
> Here's another round of -Wunused-parameter cleanups. Previous rounds
> were at [1] and [2]. As before, these are mostly just removals, so it's
> easy to see there's no behavior change (there are a couple of cleanups
> that ride along, though, so watch for those).
>
> There are two minor conflicts when merging with pu:
>
> - jt/fetch-cdn-offload tweaked the "pack_lockfile" parameter to
> fetch_pack(). A few other parameters are dropped in this series.
> The textual resolution is pretty straightforward.
>
> - ps/stash-in-c (et al) added a new call to report_path_error() in
> builtin/stash.c, which here loses its redundant "prefix" parameter.
> There's no textual conflict, but the new call needs to drop its
> final NULL parameter in order to compile.
>
> [1] https://public-inbox.org/git/20190214054736.GA20091@sigill.intra.peff.net/
> [2] https://public-inbox.org/git/20190124131104.GA24017@sigill.intra.peff.net/
>
> The patches are:
>
> [01/13]: revision: drop some unused "revs" parameters
> [02/13]: log: drop unused rev_info from early output
> [03/13]: log: drop unused "len" from show_tagger()
> [04/13]: update-index: drop unused prefix_length parameter from do_reupdate()
> [05/13]: test-date: drop unused "now" parameter from parse_dates()
> [06/13]: unpack-trees: drop name_entry from traverse_by_cache_tree()
> [07/13]: unpack-trees: drop unused error_type parameters
> [08/13]: report_path_error(): drop unused prefix parameter
> [09/13]: fetch_pack(): drop unused parameters
> [10/13]: parse-options: drop unused ctx parameter from show_gitcomp()
> [11/13]: pretty: drop unused "type" parameter in needs_rfc2047_encoding()
> [12/13]: pretty: drop unused strbuf from parse_padding_placeholder()
> [13/13]: parse_opt_ref_sorting: always use with NONEG flag
Nicely written. Thanks.
> builtin/branch.c | 3 +--
> builtin/checkout.c | 2 +-
> builtin/commit.c | 6 +++---
> builtin/fetch-pack.c | 2 +-
> builtin/for-each-ref.c | 3 +--
> builtin/log.c | 18 +++++++++---------
> builtin/ls-files.c | 2 +-
> builtin/ls-remote.c | 3 +--
> builtin/submodule--helper.c | 2 +-
> builtin/tag.c | 3 +--
> builtin/update-index.c | 5 ++---
> dir.c | 3 +--
> dir.h | 2 +-
> fetch-pack.c | 3 +--
> fetch-pack.h | 3 +--
> parse-options.c | 5 ++---
> pretty.c | 12 +++++-------
> ref-filter.c | 9 +++++++--
> ref-filter.h | 5 +++++
> revision.c | 12 ++++++------
> t/helper/test-date.c | 4 ++--
> transport.c | 10 ++++------
> unpack-trees.c | 9 +++------
> 23 files changed, 60 insertions(+), 66 deletions(-)
>
> -Peff
next prev parent reply other threads:[~2019-03-20 9:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-20 8:12 [PATCH 0/13] more unused parameter cleanups Jeff King
2019-03-20 8:13 ` [PATCH 01/13] revision: drop some unused "revs" parameters Jeff King
2019-03-20 8:13 ` [PATCH 02/13] log: drop unused rev_info from early output Jeff King
2019-03-20 8:14 ` [PATCH 03/13] log: drop unused "len" from show_tagger() Jeff King
2019-03-20 8:14 ` [PATCH 04/13] update-index: drop unused prefix_length parameter from do_reupdate() Jeff King
2019-03-20 8:14 ` [PATCH 05/13] test-date: drop unused "now" parameter from parse_dates() Jeff King
2019-03-20 8:15 ` [PATCH 06/13] unpack-trees: drop name_entry from traverse_by_cache_tree() Jeff King
2019-03-20 8:15 ` [PATCH 07/13] unpack-trees: drop unused error_type parameters Jeff King
2019-03-20 8:15 ` [PATCH 08/13] report_path_error(): drop unused prefix parameter Jeff King
2019-03-20 8:16 ` [PATCH 09/13] fetch_pack(): drop unused parameters Jeff King
2019-03-20 8:16 ` [PATCH 10/13] parse-options: drop unused ctx parameter from show_gitcomp() Jeff King
2019-03-20 8:16 ` [PATCH 11/13] pretty: drop unused "type" parameter in needs_rfc2047_encoding() Jeff King
2019-03-20 8:16 ` [PATCH 12/13] pretty: drop unused strbuf from parse_padding_placeholder() Jeff King
2019-03-20 8:16 ` [PATCH 13/13] parse_opt_ref_sorting: always use with NONEG flag Jeff King
2019-03-20 12:22 ` Martin Ågren
2019-03-20 20:22 ` Jeff King
2019-03-20 9:29 ` Junio C Hamano [this message]
2019-03-21 8:50 ` [PATCH 0/13] more unused parameter cleanups Ævar Arnfjörð Bjarmason
2019-03-21 9:44 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqr2b1vqq4.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).