Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2015-08-17 13:36:45 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:01:22 +0300
commitbd084d4eed058b68f4d27c626befc48ee317963a (patch)
tree76653bfb1ac46c96a5dcee64348f9940d29edce6 /storage
parent2481158e3132602ec8ba9ef3273fe87df09e8787 (diff)
Simplified old code.
Diffstat (limited to 'storage')
-rw-r--r--storage/storage.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp
index 9e0f3309ce..1de5ea423f 100644
--- a/storage/storage.cpp
+++ b/storage/storage.cpp
@@ -567,28 +567,11 @@ void Storage::OnMapDownloadFinished(TIndex const & index, bool success, MapOptio
ASSERT_NOT_EQUAL(MapOptions::Nothing, files,
("This method should not be called for empty files set."));
{
- string optionsName;
- switch (files)
- {
- case MapOptions::Nothing:
- optionsName = "Nothing";
- break;
- case MapOptions::Map:
- optionsName = "Map";
- break;
- case MapOptions::CarRouting:
- optionsName = "CarRouting";
- break;
- case MapOptions::MapWithCarRouting:
- optionsName = "MapWithCarRouting";
- break;
- }
- alohalytics::LogEvent(
- "$OnMapDownloadFinished",
+ alohalytics::LogEvent("$OnMapDownloadFinished",
alohalytics::TStringMap({{"name", GetCountryFile(index).GetNameWithoutExt()},
{"status", success ? "ok" : "failed"},
{"version", strings::to_string(GetCurrentDataVersion())},
- {"option", optionsName}}));
+ {"option", DebugPrint(files)}}));
}
success = success && RegisterDownloadedFiles(index, files);