diff --git a/map/guides_manager.cpp b/map/guides_manager.cpp index 3c6ea800c3..d8b9b002be 100644 --- a/map/guides_manager.cpp +++ b/map/guides_manager.cpp @@ -186,54 +186,7 @@ void GuidesManager::Clear() GuidesManager::GuidesGallery GuidesManager::GetGallery() const { - // Dummy gallery hardcode for debug only. GuidesGallery gallery; - { - GuidesGallery::Item item; - item.m_guideId = "048f4c49-ee80-463f-8513-e57ade2303ee"; - item.m_url = "https://routes.maps.me/en/v3/mobilefront/route/048f4c49-ee80-463f-8513-e57ade2303ee"; - item.m_imageUrl = "https://storage.maps.me/bookmarks_catalogue/" - "002dc2ae-7b5c-4d3c-88bc-7c7ba109d0e8.jpg?t=1584470956.009026"; - item.m_title = "Moscow by The Village"; - item.m_type = GuidesGallery::Item::Type::City; - item.m_downloaded = false; - item.m_cityParams.m_bookmarksCount = 32; - item.m_cityParams.m_trackIsAvailable = false; - - gallery.m_items.emplace_back(std::move(item)); - } - - { - GuidesGallery::Item item; - item.m_guideId = "e2d448eb-7fa4-4fab-93e7-ef0fea91cfff"; - item.m_url = "https://routes.maps.me/en/v3/mobilefront/route/e2d448eb-7fa4-4fab-93e7-ef0fea91cfff"; - item.m_imageUrl = "https://storage.maps.me/bookmarks_catalogue/" - "002dc2ae-7b5c-4d3c-88bc-7c7ba109d0e8.jpg?t=1584470956.009026"; - item.m_title = "Riga City Tour"; - item.m_type = GuidesGallery::Item::Type::City; - item.m_downloaded = true; - item.m_cityParams.m_bookmarksCount = 31; - item.m_cityParams.m_trackIsAvailable = true; - - gallery.m_items.emplace_back(std::move(item)); - } - - { - GuidesGallery::Item item; - item.m_guideId = "d26a6662-20a3-432c-a357-c9cb3cce6d57"; - item.m_url = "https://routes.maps.me/en/v3/mobilefront/route/d26a6662-20a3-432c-a357-c9cb3cce6d57"; - item.m_imageUrl = "https://img.oastatic.com/img2/1966324/834x417s/t.jpg"; - item.m_title = "Klassik trifft Romantik"; - item.m_type = GuidesGallery::Item::Type::Outdoor; - item.m_downloaded = false; - item.m_outdoorsParams.m_tag = "Hiking / Trekking"; - item.m_outdoorsParams.m_ascent = 400; - item.m_outdoorsParams.m_distance = 24100; - item.m_outdoorsParams.m_duration = 749246; - - gallery.m_items.emplace_back(std::move(item)); - } - for (auto const & guide : m_guides) { if (guide.m_outdoorCount + guide.m_sightsCount != 1) @@ -272,12 +225,6 @@ GuidesManager::GuidesGallery GuidesManager::GetGallery() const gallery.m_items.emplace_back(std::move(item)); } - // Dummy, for debug only. - while (gallery.m_items.size() < 10) - { - std::copy(gallery.m_items.begin(), gallery.m_items.end(), std::back_inserter(gallery.m_items)); - } - return gallery; } diff --git a/map/guides_manager.hpp b/map/guides_manager.hpp index f855983f72..200ab2b4c0 100644 --- a/map/guides_manager.hpp +++ b/map/guides_manager.hpp @@ -127,8 +127,7 @@ private: guides_on_map::Api m_api; guides_on_map::GuidesOnMap m_guides; - // Initial value is dummy for debug only. - std::string m_activeGuide = "048f4c49-ee80-463f-8513-e57ade2303ee"; + std::string m_activeGuide; BookmarkManager * m_bmManager = nullptr; df::DrapeEngineSafePtr m_drapeEngine;