Skip to contentSkip to conversation

Remove unused remote_prefix member in builtin-remote

PATCH In review Shawn O. Pearce 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 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.

---
 builtin-remote.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
builtin-remote.c +0 -3
index 99a34df..c76fe2e 100644
@@ -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);
 
Signature · 1 line
1.5.6.rc0.158.g7c7a1