All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] Remove unused remote_prefix member in builtin-remote
@ 2008-06-01  3:57 Shawn O. Pearce
  0 siblings, 0 replies; only message in thread
From: Shawn O. Pearce @ 2008-06-01  3:57 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

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>
---
 builtin-remote.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/builtin-remote.c b/builtin-remote.c
index 99a34df..c76fe2e 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);
 
-- 
1.5.6.rc0.158.g7c7a1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-01  3:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-01  3:57 [PATCH 1/3] Remove unused remote_prefix member in builtin-remote Shawn O. Pearce

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.