Commit 4a9c75d926537fb806006fd1630c69521f069ec9

Stefan Sperling 2018-09-09T15:56:38

remove unused parameter of get_packfile_path()

diff --git a/lib/pack.c b/lib/pack.c
index b185f2e..a771aaa 100644
--- a/lib/pack.c
+++ b/lib/pack.c
@@ -583,8 +583,7 @@ done:
 }
 
 static const struct got_error *
-get_packfile_path(char **path_packfile, struct got_repository *repo,
-    struct got_packidx *packidx)
+get_packfile_path(char **path_packfile, struct got_packidx *packidx)
 {
 	size_t size;
 
@@ -1169,7 +1168,7 @@ open_packed_object(struct got_object **obj, struct got_repository *repo,
 	if (offset == (uint64_t)-1)
 		return got_error(GOT_ERR_BAD_PACKIDX);
 
-	err = get_packfile_path(&path_packfile, repo, packidx);
+	err = get_packfile_path(&path_packfile, packidx);
 	if (err)
 		return err;