Commit a0448d6073bd074843f84f72d1475f63c099231d

Stefan Sperling 2017-11-12T16:10:06

remove an unused function

diff --git a/include/got_repository.h b/include/got_repository.h
index 7d9c9c2..65e7c61 100644
--- a/include/got_repository.h
+++ b/include/got_repository.h
@@ -22,9 +22,6 @@ struct got_repository {
 const struct got_error *got_repo_open(struct got_repository**, const char *);
 void got_repo_close(struct got_repository*);
 
-/* Get the absolute path to the top-level directory of a repository. */
-const char *got_repo_get_path(struct got_repository *);
-
 char *got_repo_get_path_git_dir(struct got_repository *);
 char *got_repo_get_path_objects(struct got_repository *);
 char *got_repo_get_path_refs(struct got_repository *);
diff --git a/lib/repository.c b/lib/repository.c
index 9e794a4..e7108eb 100644
--- a/lib/repository.c
+++ b/lib/repository.c
@@ -139,9 +139,3 @@ got_repo_close(struct got_repository *repo)
 	free(repo->path);
 	free(repo);
 }
-
-const char *
-got_repo_get_path(struct got_repository *repo)
-{
-	return repo->path;
-}