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 <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Shawn O. Pearce committed
May 31, 2008 at 23:57 UTC
6a15bc0d220cf3b139d80326afa0d70411916aed
1 file changed
-3
builtin-remote.c
-3
@@ -206,7 +206,6 @@ static void read_branches(void)
206
207
struct ref_states {
208
struct remote *remote;
209
- struct strbuf remote_prefix;
209
struct path_list new, stale, tracked;
210
};
211
@@ -262,8 +261,6 @@ static int get_ref_states(const struct ref *ref, struct ref_states *states)
261
}
262
free_refs(fetch_map);
263
265
- strbuf_addf(&states->remote_prefix,
266
- "refs/remotes/%s/", states->remote->name);
264
for_each_ref(handle_one_branch, states);
265
sort_path_list(&states->stale);
266