Skip to content

Commit 13a1781

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7bd9631 commit 13a1781

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

wt-status.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,9 +2045,7 @@ static void wt_porcelain_v2_submodule_state(
20452045
/*
20462046
* Fix-up changed entries before we print them.
20472047
*/
2048-
static void wt_porcelain_v2_fix_up_changed(
2049-
struct string_list_item *it,
2050-
struct wt_status *s)
2048+
static void wt_porcelain_v2_fix_up_changed(struct string_list_item *it)
20512049
{
20522050
struct wt_status_change_data *d = it->util;
20532051

@@ -2107,7 +2105,7 @@ static void wt_porcelain_v2_print_changed_entry(
21072105
char submodule_token[5];
21082106
char sep_char, eol_char;
21092107

2110-
wt_porcelain_v2_fix_up_changed(it, s);
2108+
wt_porcelain_v2_fix_up_changed(it);
21112109
wt_porcelain_v2_submodule_state(d, submodule_token);
21122110

21132111
key[0] = d->index_status ? d->index_status : '.';

0 commit comments

Comments
 (0)