Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
wt-status: remove unused field in grab_1st_switch_cbdata
[gitweb.git]
/
wt-status.c
diff --git
a/wt-status.c
b/wt-status.c
index bf84a86ee3d6b136bd83115f0bf15a55835817fc..251127021cd68b9cad67683c2b7f5c0b98492fa6 100644
(file)
--- a/
wt-status.c
+++ b/
wt-status.c
@@
-1035,7
+1035,6
@@
static char *read_and_strip_branch(const char *path)
}
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;
}