From: Shawn O. Pearce Date: Sun, 1 Jun 2008 03:57:48 +0000 (-0400) Subject: Remove unused remote_prefix member in builtin-remote X-Git-Tag: v1.5.6-rc1~8^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6a15bc0d220cf3b139d80326afa0d70411916aed;p=git.git Remove unused remote_prefix member in builtin-remote Not sure when this became unused, but no code references it, other than to populate the strbuf with an initial value. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/builtin-remote.c b/builtin-remote.c index 99a34dfe8..c76fe2e0e 100644 --- a/builtin-remote.c +++ b/builtin-remote.c @@ -206,7 +206,6 @@ static void read_branches(void) struct ref_states { struct remote *remote; - struct strbuf remote_prefix; struct path_list new, stale, tracked; }; @@ -262,8 +261,6 @@ static int get_ref_states(const struct ref *ref, struct ref_states *states) } free_refs(fetch_map); - strbuf_addf(&states->remote_prefix, - "refs/remotes/%s/", states->remote->name); for_each_ref(handle_one_branch, states); sort_path_list(&states->stale);