aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.c
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2020-07-31 19:32:12 -0400
committerJunio C Hamano <gitster@pobox.com>2020-07-31 19:56:11 -0700
commit246756f775bdd3055da969a16d9e9c74e76a3e06 (patch)
tree8322e93df155dc0d7a398e74ca994ab9222654bd /worktree.c
parent62573a57f0919f4d1129962b09462946e69025ff (diff)
downloadgit-246756f775bdd3055da969a16d9e9c74e76a3e06.tar.gz
worktree: drop unused code from get_linked_worktree()
This code has been unused since fa099d2322 (worktree.c: kill parse_ref() in favor of refs_resolve_ref_unsafe(), 2017-04-24), so drop it. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'worktree.c')
-rw-r--r--worktree.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/worktree.c b/worktree.c
index c0df5e2c79..fa8366a3ca 100644
--- a/worktree.c
+++ b/worktree.c
@@ -90,9 +90,6 @@ static struct worktree *get_linked_worktree(const char *id)
strbuf_strip_suffix(&worktree_path, "/.");
}
- strbuf_reset(&path);
- strbuf_addf(&path, "%s/worktrees/%s/HEAD", get_git_common_dir(), id);
-
worktree = xcalloc(1, sizeof(*worktree));
worktree->path = strbuf_detach(&worktree_path, NULL);
worktree->id = xstrdup(id);