diff options
author | Darafei Praliaskouski <komzpa@gmail.com> | 2013-01-15 16:58:35 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:48:46 +0300 |
commit | a81bbd3cb85535d7664ca39c661fd6b163f50694 (patch) | |
tree | 17558058a37261f9580ef2cf78be4d4945383a53 /indexer/feature_visibility.cpp | |
parent | 2d5d54580b018be526a5e8f31bf725ff0d7b222c (diff) |
feature styler
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r-- | indexer/feature_visibility.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp index 5e88bb51cc..0ecaeeb698 100644 --- a/indexer/feature_visibility.cpp +++ b/indexer/feature_visibility.cpp @@ -404,43 +404,6 @@ pair<int, int> GetDrawableScaleRangeForRules(FeatureBase const & f, int rules) return GetDrawableScaleRangeForRules(TypesHolder(f), rules); } -bool UsePopulationRank(uint32_t type) -{ - class CheckerT - { - uint32_t m_types[3]; - - public: - CheckerT() - { - Classificator & c = classif(); - - vector<string> vec; - vec.push_back("place"); - vec.push_back("city"); - m_types[0] = c.GetTypeByPath(vec); - - vec.push_back("capital"); - m_types[1] = c.GetTypeByPath(vec); - - vec.clear(); - vec.push_back("place"); - vec.push_back("town"); - m_types[2] = c.GetTypeByPath(vec); - } - - bool IsMyType(uint32_t t) const - { - uint32_t const * e = m_types + ARRAY_SIZE(m_types); - return (find(m_types, e, t) != e); - } - }; - - static CheckerT checker; - return (checker.IsMyType(type)); -} - - void TypeSetChecker::SetType(StringT * beg, StringT * end) { m_type = classif().GetTypeByPath(vector<string>(beg, end)); |