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 <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ramkumar Ramachandra committed Jun 16, 2013 at 14:15 UTC ce23d493b479d754321c9d835039a93e7fde9671
1 file changed -2
wt-status.c
-2
@@ -1035,7 +1035,6 @@ got_nothing:
1035 }
1036
1037 struct grab_1st_switch_cbdata {
1038 - int found;
1038 struct strbuf buf;
1039 unsigned char nsha1[20];
1040 };
@@ -1059,7 +1058,6 @@ static int grab_1st_switch(unsigned char *osha1, unsigned char *nsha1,
1058 for (end = target; *end && *end != '\n'; end++)
1059 ;
1060 strbuf_add(&cb->buf, target, end - target);
1062 - cb->found = 1;
1061 return 1;
1062 }
1063