Skip to content

Commit 246756f

Browse files
sunshinecogitster
authored andcommitted
worktree: drop unused code from get_linked_worktree()
This code has been unused since fa099d2 (worktree.c: kill parse_ref() in favor of refs_resolve_ref_unsafe(), 2017-04-24), so drop it. Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 62573a5 commit 246756f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

worktree.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ static struct worktree *get_linked_worktree(const char *id)
9090
strbuf_strip_suffix(&worktree_path, "/.");
9191
}
9292

93-
strbuf_reset(&path);
94-
strbuf_addf(&path, "%s/worktrees/%s/HEAD", get_git_common_dir(), id);
95-
9693
worktree = xcalloc(1, sizeof(*worktree));
9794
worktree->path = strbuf_detach(&worktree_path, NULL);
9895
worktree->id = xstrdup(id);

0 commit comments

Comments
 (0)