| 1771 | } |
| 1772 | |
| 1773 | void Storage::SetMapSchemeForCountriesWithAbsentDiffs(IsDiffAbsentForCountry const & isAbsent) |
| 1774 | { |
| 1775 | std::vector<CountryId> countriesToReplace; |
| 1776 | m_downloader->GetQueue().ForEachCountry([&countriesToReplace, &isAbsent](QueuedCountry const & queuedCountry) |
| 1777 | { |
| 1778 | if (queuedCountry.GetFileType() == MapFileType::Diff && isAbsent(queuedCountry.GetCountryId())) |
| 1779 | countriesToReplace.push_back(queuedCountry.GetCountryId()); |
| 1780 | }); |
| 1781 | |
| 1782 | for (auto const & countryId : countriesToReplace) |
| 1783 | { |
| 1784 | DeleteCountryFilesFromDownloader(countryId); |
| 1785 | DownloadCountry(countryId, MapFileType::Map); |
| 1786 | } |
| 1787 | } |
| 1788 | |
| 1789 | void Storage::AbortDiffScheme() |
| 1790 | { |
nothing calls this directly
no test coverage detected