| 851 | } |
| 852 | |
| 853 | void Storage::DeleteCountry(CountryId const & countryId, MapFileType type) |
| 854 | { |
| 855 | ASSERT(m_willDelete != nullptr, ("Storage::Init wasn't called")); |
| 856 | |
| 857 | LocalFilePtr localFile = GetLatestLocalFile(countryId); |
| 858 | bool const deferredDelete = m_willDelete(countryId, localFile); |
| 859 | DeleteCountryFiles(countryId, type, deferredDelete); |
| 860 | DeleteCountryFilesFromDownloader(countryId); |
| 861 | m_diffsDataSource->RemoveDiffForCountry(countryId); |
| 862 | |
| 863 | m_downloadingCountries.erase(countryId); |
| 864 | |
| 865 | NotifyStatusChangedForHierarchy(countryId); |
| 866 | } |
| 867 | |
| 868 | void Storage::DeleteCustomCountryVersion(LocalCountryFile const & localFile) |
| 869 | { |