mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
wt-status: drop unused status parameter
The v2_fix_up_changed() function doesn't actually need to see the wt_status struct. It's possible that could change in the future, but this is a static-local function with one caller. It would be easy to read-add it back then. Let's drop the unused parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
7bd9631bfc
commit
13a178129f
@ -2045,9 +2045,7 @@ static void wt_porcelain_v2_submodule_state(
|
||||
/*
|
||||
* Fix-up changed entries before we print them.
|
||||
*/
|
||||
static void wt_porcelain_v2_fix_up_changed(
|
||||
struct string_list_item *it,
|
||||
struct wt_status *s)
|
||||
static void wt_porcelain_v2_fix_up_changed(struct string_list_item *it)
|
||||
{
|
||||
struct wt_status_change_data *d = it->util;
|
||||
|
||||
@ -2107,7 +2105,7 @@ static void wt_porcelain_v2_print_changed_entry(
|
||||
char submodule_token[5];
|
||||
char sep_char, eol_char;
|
||||
|
||||
wt_porcelain_v2_fix_up_changed(it, s);
|
||||
wt_porcelain_v2_fix_up_changed(it);
|
||||
wt_porcelain_v2_submodule_state(d, submodule_token);
|
||||
|
||||
key[0] = d->index_status ? d->index_status : '.';
|
||||
|
Loading…
Reference in New Issue
Block a user