From 5c4aea1498b72fb7b6a6ea777e89585fc78908f3 Mon Sep 17 00:00:00 2001 From: ochafik Date: Sat, 27 Apr 2024 15:25:01 +0100 Subject: [PATCH] curl: rm legacy .etag file support --- common/common.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index 9c4bcccb3..277ee448d 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1940,18 +1940,6 @@ static bool llama_download_file(CURL * curl, const std::string & url, const std: fprintf(stderr, "%s: error reading metadata file %s: %s\n", __func__, metadata_path.c_str(), e.what()); return false; } - } else { - // Check for legacy ${path_model}.etag & ${path_model}.lastModified files (note: both streams autoclosed upon exiting this block). - std::ifstream etag_in(path + ".etag"); - if (etag_in.good()) { - std::getline(etag_in, etag); - fprintf(stderr, "%s: previous etag file found %s: %s\n", __func__, path.c_str(), etag.c_str()); - } - std::ifstream last_modified_in(path + ".lastModified"); - if (last_modified_in.good()) { - std::getline(last_modified_in, last_modified); - fprintf(stderr, "%s: previous lastModified file found %s: %s\n", __func__, path.c_str(), last_modified.c_str()); - } } } else { fprintf(stderr, "%s: no previous model file found %s\n", __func__, path.c_str());