diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2018-09-12 14:11:05 +0300 |
---|---|---|
committer | Aleksandr Zatsepin <alexzatsepin@users.noreply.github.com> | 2018-09-12 14:49:23 +0300 |
commit | 5f5031ca8b50d8654e2a0d053ceac0f7a22465c6 (patch) | |
tree | a9212a77c72cd582f50b30d885030356d3a2ef9d /map | |
parent | 52563efb3da4f811931fea9758df655dacf75fed (diff) |
Removed partners from code
Diffstat (limited to 'map')
-rw-r--r-- | map/displayed_categories_modifiers.cpp | 12 | ||||
-rw-r--r-- | map/displayed_categories_modifiers.hpp | 6 | ||||
-rw-r--r-- | map/framework.cpp | 11 |
3 files changed, 7 insertions, 22 deletions
diff --git a/map/displayed_categories_modifiers.cpp b/map/displayed_categories_modifiers.cpp index 5665214c23..917d9bda6a 100644 --- a/map/displayed_categories_modifiers.cpp +++ b/map/displayed_categories_modifiers.cpp @@ -7,12 +7,7 @@ namespace { -std::unordered_set<std::string> const kLuggageHeroesSupportedCities{"London", "New York", - "Copenhagen"}; - -std::string const kLuggageHeroCategory = "luggagehero"; - -std::vector<std::string> const kSponsoredCategories = {kLuggageHeroCategory}; +std::vector<std::string> const kSponsoredCategories = {}; search::DisplayedCategories::Keys::const_iterator FindInsertionPlace( search::DisplayedCategories::Keys & keys, uint32_t position) @@ -55,8 +50,3 @@ void SponsoredCategoryModifier::Modify(search::DisplayedCategories::Keys & keys) else if (!supported && contains) keys.erase(std::remove(keys.begin(), keys.end(), m_categoryName), keys.end()); } - -LuggageHeroModifier::LuggageHeroModifier(std::string const & currentCity) - : SponsoredCategoryModifier(currentCity, kLuggageHeroesSupportedCities, kLuggageHeroCategory, - 4 /* position */) -{} diff --git a/map/displayed_categories_modifiers.hpp b/map/displayed_categories_modifiers.hpp index 94026598a6..e961e0996c 100644 --- a/map/displayed_categories_modifiers.hpp +++ b/map/displayed_categories_modifiers.hpp @@ -24,9 +24,3 @@ private: std::string const m_categoryName; uint32_t const m_position; }; - -class LuggageHeroModifier : public SponsoredCategoryModifier -{ -public: - explicit LuggageHeroModifier(std::string const & currentCity); -}; diff --git a/map/framework.cpp b/map/framework.cpp index 29e0df178d..33e1aebbc7 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1501,11 +1501,12 @@ search::DisplayedCategories const & Framework::GetDisplayedCategories() // Apply sponsored modifiers. if (m_subscription && !m_subscription->IsActive()) { - std::tuple<LuggageHeroModifier> modifiers(city); - my::for_each_in_tuple(modifiers, [&](size_t, SponsoredCategoryModifier & modifier) - { - m_displayedCategories->Modify(modifier); - }); + // Add Category modifiers here. + //std::tuple<Modifier> modifiers(city); + //my::for_each_in_tuple(modifiers, [&](size_t, SponsoredCategoryModifier & modifier) + //{ + // m_displayedCategories->Modify(modifier); + //}); } return *m_displayedCategories; |