Skip to content

Commit

Permalink
Remove old and now useless warning
Browse files Browse the repository at this point in the history
This warning was move around badly when the code was refactored
Ending up in multiple crashes, this warning is not useful anyway.
  • Loading branch information
bapt committed Sep 8, 2020
1 parent 0fbd9ce commit 6602e23
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions libpkg/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,6 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,

url += strlen(URL_SCHEME_PREFIX);
u = fetchParseURL(url);
} else {
if (repo != NULL && repo->mirror_type == SRV && (strncmp(u->scheme, "http", 4) == 0 ||
strncmp(u->scheme, "ftp", 3) == 0)) {
pkg_emit_notice(
"Warning: use of %s:// URL scheme with SRV records is deprecated: "
"switch to pkg+%s://", u->scheme, u->scheme);
}
}

if (u == NULL)
Expand Down

0 comments on commit 6602e23

Please sign in to comment.