forked from organicmaps/organicmaps-tmp
[storage] Removed dummy m_areDiffsPending flag.
Signed-off-by: vng <viktor.govako@gmail.com>
This commit is contained in:
parent
c1654f7314
commit
2efc84e0f5
2 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -192,7 +192,6 @@ private:
|
|||
std::vector<platform::LocalCountryFile> m_notAppliedDiffs;
|
||||
|
||||
diffs::DiffsSourcePtr m_diffsDataSource = std::make_shared<diffs::DiffsDataSource>();
|
||||
bool m_areDiffsPending = true;
|
||||
|
||||
DownloadingPolicy m_defaultDownloadingPolicy;
|
||||
DownloadingPolicy * m_downloadingPolicy = &m_defaultDownloadingPolicy;
|
||||
|
|
Loading…
Add table
Reference in a new issue