Skip to content

Commit ce23d49

Browse files
artagnongitster
authored andcommitted
wt-status: remove unused field in grab_1st_switch_cbdata
The struct grab_1st_switch_cbdata has the field "found", which is set in grab_1st_switch() when a match is found. This information is redundant and unused by any code. The return value of the function serves to communicate this information anyway. Remove the field. Signed-off-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 46ab7d4 commit ce23d49

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

wt-status.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,6 @@ static char *read_and_strip_branch(const char *path)
10351035
}
10361036

10371037
struct grab_1st_switch_cbdata {
1038-
int found;
10391038
struct strbuf buf;
10401039
unsigned char nsha1[20];
10411040
};
@@ -1059,7 +1058,6 @@ static int grab_1st_switch(unsigned char *osha1, unsigned char *nsha1,
10591058
for (end = target; *end && *end != '\n'; end++)
10601059
;
10611060
strbuf_add(&cb->buf, target, end - target);
1062-
cb->found = 1;
10631061
return 1;
10641062
}
10651063

0 commit comments

Comments
 (0)