MCPcopy Create free account
hub / github.com/comaps/comaps / DeleteCountryFilesFromDownloader

Method DeleteCountryFilesFromDownloader

libs/storage/storage.cpp:1292–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1290}
1291
1292bool Storage::DeleteCountryFilesFromDownloader(CountryId const & countryId)
1293{
1294 CHECK_THREAD_CHECKER(m_threadChecker, ());
1295
1296 if (IsDiffApplyingInProgressToCountry(countryId))
1297 m_diffsBeingApplied[countryId]->Cancel();
1298
1299 m_downloader->Remove(countryId);
1300 DeleteDownloaderFilesForCountry(m_currentVersion, m_dataDir, GetCountryFile(countryId));
1301 SaveDownloadQueue();
1302
1303 return true;
1304}
1305
1306string Storage::GetFilePath(CountryId const & countryId, MapFileType type) const
1307{

Callers

nothing calls this directly

Calls 3

CancelMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected