Commit 06c788f93b673fd0ffe4f0b19f5d3354cfd90858

Stefan Sperling 2020-03-18T16:11:29

remove got_make_pack_dir() which is unused

diff --git a/libexec/got-fetch-pack/got-fetch-pack.c b/libexec/got-fetch-pack/got-fetch-pack.c
index ead1b05..d53a548 100644
--- a/libexec/got-fetch-pack/got-fetch-pack.c
+++ b/libexec/got-fetch-pack/got-fetch-pack.c
@@ -224,24 +224,6 @@ got_has_object(struct got_object_id *obj)
 	return 0;
 }
 
-/*static */int
-got_make_pack_dir(char *path)
-{
-	char s[128];
-	char *p;
-
-	if (snprintf(s, sizeof(s), "%s", path) >= sizeof(s))
-		return -1;
-	for (p = strchr(s + 1, '/'); p; p = strchr(p + 1, '/')) {
-		*p = 0;
-		if (mkdir(s, 0755) == -1)
-			if (errno != EEXIST)
-				return -1;
-		*p = '/';
-	}
-	return 0;
-}
-
 static int
 got_match_branch(char *br, char *pat)
 {