diff --git a/platform/local_country_file_utils.cpp b/platform/local_country_file_utils.cpp index 9943522f95..85c8613a7f 100644 --- a/platform/local_country_file_utils.cpp +++ b/platform/local_country_file_utils.cpp @@ -92,7 +92,7 @@ bool IsSpecialName(string const & name) { return name == "." || name == ".."; } bool IsDownloaderFile(string const & name) { - static StringsRegexpFilter filter(".*\\.(downloading|resume|ready)[0-9]?$"); + static StringsRegexpFilter const filter(".*\\.(downloading|resume|ready)[0-9]?$"); return filter.Matches(name); } diff --git a/platform/local_country_file_utils.hpp b/platform/local_country_file_utils.hpp index f241cd3210..cee7f88e69 100644 --- a/platform/local_country_file_utils.hpp +++ b/platform/local_country_file_utils.hpp @@ -15,9 +15,6 @@ namespace platform // Removes all files downloader creates during downloading of a country. void DeleteDownloaderFilesForCountry(CountryFile const & countryFile, int64_t version); -void CleanupMapsDirectory(int64_t latestVersion, vector const & localFiles, - function const & isCountryName); - // Finds all local map files in |directory|. Version of these files is // passed as an argument. Also, performs cleanup described in comment // for FindAllLocalMapsAndCleanup(). @@ -46,7 +43,7 @@ void FindAllLocalMapsAndCleanup(int64_t latestVersion, vector // * partially downloaded non-latest maps (with version less than |latestVersion|) // * empty directories // * old (format v1) maps -// * old (splitted) Japan and Brazil maps +// * old (split) Japan and Brazil maps // * indexes for absent countries void CleanupMapsDirectory(int64_t latestVersion);