From c2c0af57481974182b2917350530ad23b16b0275 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Thu, 19 Sep 2019 15:59:14 +0300 Subject: [PATCH] [storage] got rid downloading several files for one map file. --- storage/storage.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/storage/storage.cpp b/storage/storage.cpp index 6b0abaf4f8..a16b37a6ec 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -819,12 +819,6 @@ void Storage::OnMapFileDownloadFinished(HttpRequest::Status status, QueuedCountry & queuedCountry = m_queue.front(); CountryId const countryId = queuedCountry.GetCountryId(); - if (success && queuedCountry.SwitchToNextFile()) - { - DownloadNextFile(queuedCountry); - return; - } - // Send statistics to PushWoosh. We send these statistics only for the newly downloaded // mwms, not for updated ones. if (success && queuedCountry.GetInitOptions() != MapOptions::Diff)