Commit dc2404d9e5211dd2c472c2bc600b720eb526a88e

Stefan Sperling 2018-03-11T14:28:36

remove got_worktree_change_head() for now

diff --git a/include/got_worktree.h b/include/got_worktree.h
index 190780e..c872b92 100644
--- a/include/got_worktree.h
+++ b/include/got_worktree.h
@@ -22,7 +22,5 @@ const struct got_error *got_worktree_open(struct got_worktree **, const char *);
 void got_worktree_close(struct got_worktree *);
 char *got_worktree_get_repo_path(struct got_worktree *);
 char  *got_worktree_get_head_ref_name(struct got_worktree *);
-const struct got_error *got_worktree_change_head(struct got_worktree *,
-    struct got_reference *, struct got_repository *);
 const struct got_error *got_worktree_checkout_files(struct got_worktree *,
     struct got_repository *);
diff --git a/lib/worktree.c b/lib/worktree.c
index 70a5f97..b7998d0 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -341,13 +341,6 @@ got_worktree_get_head_ref_name(struct got_worktree *worktree)
 }
 
 const struct got_error *
-got_worktree_change_head(struct got_worktree *worktree, struct got_reference *head,
-    struct got_repository *repo)
-{
-	return NULL;
-}
-
-const struct got_error *
 got_worktree_checkout_files(struct got_worktree *worktree,
     struct got_repository *repo)
 {