summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-06-16 14:15:14 +0530
committerJunio C Hamano <gitster@pobox.com>2013-06-17 09:56:32 -0700
commitce23d493b479d754321c9d835039a93e7fde9671 (patch)
tree0d9f6a293a61c77d0f79a66f6e7e5661273a5915 /wt-status.c
parent46ab7d46ca8ae98411450f077b3023e0b7e03ea9 (diff)
downloadgit-ce23d493b479d754321c9d835039a93e7fde9671.tar.gz
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>
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/wt-status.c b/wt-status.c
index bf84a86ee3..251127021c 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -1035,7 +1035,6 @@ got_nothing:
}
struct grab_1st_switch_cbdata {
- int found;
struct strbuf buf;
unsigned char nsha1[20];
};
@@ -1059,7 +1058,6 @@ static int grab_1st_switch(unsigned char *osha1, unsigned char *nsha1,
for (end = target; *end && *end != '\n'; end++)
;
strbuf_add(&cb->buf, target, end - target);
- cb->found = 1;
return 1;
}