Skip to content

Commit 6a15bc0

Browse files
spearcegitster
authored andcommitted
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>
1 parent d2b3691 commit 6a15bc0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

builtin-remote.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ static void read_branches(void)
206206

207207
struct ref_states {
208208
struct remote *remote;
209-
struct strbuf remote_prefix;
210209
struct path_list new, stale, tracked;
211210
};
212211

@@ -262,8 +261,6 @@ static int get_ref_states(const struct ref *ref, struct ref_states *states)
262261
}
263262
free_refs(fetch_map);
264263

265-
strbuf_addf(&states->remote_prefix,
266-
"refs/remotes/%s/", states->remote->name);
267264
for_each_ref(handle_one_branch, states);
268265
sort_path_list(&states->stale);
269266

0 commit comments

Comments
 (0)