diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-10-19 10:16:45 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2017-11-09 10:46:46 +0300 |
commit | ddb6fc5115554b69d9ef2440ab605cc67dbf7ac1 (patch) | |
tree | a85483c739bd401f7e25f1e643b0d417139cb06d /indexer/ftypes_mapping.hpp | |
parent | 86c9598fb685e66d8c1a8073c0952d403992a2a7 (diff) |
[ugc] separate container for excluded types is added
Diffstat (limited to 'indexer/ftypes_mapping.hpp')
-rw-r--r-- | indexer/ftypes_mapping.hpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/indexer/ftypes_mapping.hpp b/indexer/ftypes_mapping.hpp index 7b28bf1716..346dd48f51 100644 --- a/indexer/ftypes_mapping.hpp +++ b/indexer/ftypes_mapping.hpp @@ -11,10 +11,7 @@ namespace ftypes { -// When [allowDuplications] is true then we are support duplications in ierarchy, -// for ex. shop and shop-alcohol. shop-alcohol is duplicaton of shop, because shop contains -// shop-alcohol. -template <typename Container, bool allowDuplications = false> +template <typename Container> class Matcher { public: @@ -50,14 +47,6 @@ public: template <typename Type, typename... Args> void AppendType(Type && type, Args &&... args) { -#if defined(DEBUG) - if (!allowDuplications) - { - feature::TypesHolder holder; - holder.Assign(classif().GetTypeByPath(type)); - ASSERT(Find(holder) == m_mapping.cend(), ("This type already exists", type)); - } -#endif m_mapping.emplace(classif().GetTypeByPath(std::forward<Type>(type)), std::forward<Args>(args)...); } |