summaryrefslogtreecommitdiff
path: root/src/url.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-01-11 09:16:38 +0200
committerTimo Teräs <timo.teras@iki.fi>2020-01-11 11:20:48 +0200
commit7caa21773160f9be4d095ce0489d05e8d0131312 (patch)
tree0e023031acbbc2bc1d82de6ba3cfc127cb955e40 /src/url.c
parent6da3e8eb15c0456b9908bedfdeced2f3a550b58c (diff)
downloadapk-tools-7caa21773160f9be4d095ce0489d05e8d0131312.tar.gz
apk-tools-7caa21773160f9be4d095ce0489d05e8d0131312.tar.bz2
apk-tools-7caa21773160f9be4d095ce0489d05e8d0131312.tar.xz
apk-tools-7caa21773160f9be4d095ce0489d05e8d0131312.zip
convert remaining locations to use istream instead of bstream
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/url.c b/src/url.c
index d233e06..a7e5a96 100644
--- a/src/url.c
+++ b/src/url.c
@@ -152,12 +152,5 @@ struct apk_istream *apk_istream_from_fd_url_if_modified(int atfd, const char *ur
struct apk_istream *apk_istream_from_url_gz(const char *file)
{
- return apk_bstream_gunzip(apk_bstream_from_url(file));
-}
-
-struct apk_bstream *apk_bstream_from_fd_url_if_modified(int atfd, const char *url, time_t since)
-{
- if (apk_url_local_file(url) != NULL)
- return apk_bstream_from_file(atfd, apk_url_local_file(url));
- return apk_bstream_from_istream(apk_istream_fetch(url, since));
+ return apk_istream_gunzip(apk_istream_from_url(file));
}