commit 06c788f93b673fd0ffe4f0b19f5d3354cfd90858 from: Stefan Sperling date: Wed Mar 18 16:11:29 2020 UTC remove got_make_pack_dir() which is unused commit - cf8755741988f98f8bf86bb0a99fce43a84aa389 commit + 06c788f93b673fd0ffe4f0b19f5d3354cfd90858 blob - ead1b056ec197616b02145e138f74d76c1fef6f0 blob + d53a54871832ab5e7c4c095dde8b40f90fd8d20a --- libexec/got-fetch-pack/got-fetch-pack.c +++ libexec/got-fetch-pack/got-fetch-pack.c @@ -221,24 +221,6 @@ got_check_pack_hash(int fd, size_t sz, uint8_t *hcomp) int 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; }