{"thread":{"id":"13750","subject":"[PATCH 1/3] Remove unused remote_prefix member in builtin-remote","startedAt":"2008-06-01T03:57:48Z","lastAt":"2008-06-01T03:57:48Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"78268","messageId":"20080601035748.GA32176@spearce.org","threadId":"13750","inReplyTo":null,"subject":"[PATCH 1/3] Remove unused remote_prefix member in builtin-remote","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-06-01T03:57:48Z","receivedAt":"2008-06-01T03:57:48Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Not sure when this became unused, but no code references it,\nother than to populate the strbuf with an initial value.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n builtin-remote.c |    3 ---\n 1 files changed, 0 insertions(+), 3 deletions(-)\n\ndiff --git a/builtin-remote.c b/builtin-remote.c\nindex 99a34df..c76fe2e 100644\n--- a/builtin-remote.c\n+++ b/builtin-remote.c\n@@ -206,7 +206,6 @@ static void read_branches(void)\n \n struct ref_states {\n \tstruct remote *remote;\n-\tstruct strbuf remote_prefix;\n \tstruct path_list new, stale, tracked;\n };\n \n@@ -262,8 +261,6 @@ static int get_ref_states(const struct ref *ref, struct ref_states *states)\n \t}\n \tfree_refs(fetch_map);\n \n-\tstrbuf_addf(&states->remote_prefix,\n-\t\t\"refs/remotes/%s/\", states->remote->name);\n \tfor_each_ref(handle_one_branch, states);\n \tsort_path_list(&states->stale);\n \n-- \n1.5.6.rc0.158.g7c7a1\n"}]}