diff --git a/storage/storage.cpp b/storage/storage.cpp index 0a265e321b..0ac0bb2b7c 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -1203,7 +1203,7 @@ void Storage::DownloadNode(CountryId const & countryId, bool isUpdate /* = false { auto const countryId = descendantNode.Value().Name(); auto const fileType = - isUpdate && (m_areDiffsPending || m_diffsDataSource->HasDiffFor(countryId)) + isUpdate && m_diffsDataSource->HasDiffFor(countryId) ? MapFileType::Diff : MapFileType::Map; @@ -1440,7 +1440,6 @@ void Storage::OnFinishDownloading() void Storage::OnDiffStatusReceived(diffs::NameDiffInfoMap && diffs) { - m_areDiffsPending = false; m_diffsDataSource->SetDiffInfo(move(diffs)); SetMapSchemeForCountriesWithAbsentDiffs([this] (auto const & id) diff --git a/storage/storage.hpp b/storage/storage.hpp index d04cb3a8b4..fc6d7624e4 100644 --- a/storage/storage.hpp +++ b/storage/storage.hpp @@ -192,7 +192,6 @@ private: std::vector m_notAppliedDiffs; diffs::DiffsSourcePtr m_diffsDataSource = std::make_shared(); - bool m_areDiffsPending = true; DownloadingPolicy m_defaultDownloadingPolicy; DownloadingPolicy * m_downloadingPolicy = &m_defaultDownloadingPolicy;