chore(3p/nix/libstore): Remove progress bar remnants from download
This commit is contained in:
parent
f5aaa12f1d
commit
b371821db5
1 changed files with 0 additions and 19 deletions
19
third_party/nix/src/libstore/download.cc
vendored
19
third_party/nix/src/libstore/download.cc
vendored
|
@ -215,21 +215,6 @@ struct CurlDownloader : public Downloader {
|
|||
return ((DownloadItem*)userp)->headerCallback(contents, size, nmemb);
|
||||
}
|
||||
|
||||
static int progressCallback(double dltotal, double dlnow) {
|
||||
try {
|
||||
// TODO(tazjin): this had activity nonsense, clean it up
|
||||
} catch (nix::Interrupted&) {
|
||||
assert(_isInterrupted);
|
||||
}
|
||||
return static_cast<int>(_isInterrupted);
|
||||
}
|
||||
|
||||
static int progressCallbackWrapper(void* userp, double dltotal,
|
||||
double dlnow, double ultotal,
|
||||
double ulnow) {
|
||||
return ((DownloadItem*)userp)->progressCallback(dltotal, dlnow);
|
||||
}
|
||||
|
||||
static int debugCallback(CURL* handle, curl_infotype type, char* data,
|
||||
size_t size, void* userptr) {
|
||||
if (type == CURLINFO_TEXT) {
|
||||
|
@ -298,10 +283,6 @@ struct CurlDownloader : public Downloader {
|
|||
DownloadItem::headerCallbackWrapper);
|
||||
curl_easy_setopt(req, CURLOPT_HEADERDATA, this);
|
||||
|
||||
curl_easy_setopt(req, CURLOPT_PROGRESSFUNCTION, progressCallbackWrapper);
|
||||
curl_easy_setopt(req, CURLOPT_PROGRESSDATA, this);
|
||||
curl_easy_setopt(req, CURLOPT_NOPROGRESS, 0);
|
||||
|
||||
curl_easy_setopt(req, CURLOPT_HTTPHEADER, requestHeaders);
|
||||
|
||||
if (request.head) {
|
||||
|
|
Loading…
Reference in a new issue