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:
authorvng <viktor.govako@gmail.com>2013-12-02 17:11:41 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:08:09 +0300
commit867425921b83e4e13578f2550884806ad62947eb (patch)
treedbd354f1865a11d17e9d7a91463ed48c88544550 /indexer/feature_visibility.cpp
parent24c2f1a09a6b9be6c7c17c65982cdf7034dd9025 (diff)
[generator] Skip features with helper types only ("oneway").
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r--indexer/feature_visibility.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp
index f6f058f7e2..4d9c09fcce 100644
--- a/indexer/feature_visibility.cpp
+++ b/indexer/feature_visibility.cpp
@@ -138,34 +138,6 @@ namespace
};
}
-namespace
-{
- class UselessCheckPatch
- {
- uint32_t m_oneway, m_highway;
-
- public:
- UselessCheckPatch(Classificator const & c)
- {
- vector<string> v;
- v.push_back("oneway");
- m_oneway = c.GetTypeByPath(v);
-
- v.clear();
- v.push_back("highway");
- m_highway = c.GetTypeByPath(v);
- }
-
- bool IsHighway(uint32_t t) const
- {
- ftype::TruncValue(t, 1);
- return (t == m_highway);
- }
-
- bool IsOneway(uint32_t t) const { return (t == m_oneway); }
- };
-}
-
pair<int, bool> GetDrawRule(FeatureBase const & f, int level,
drule::KeysT & keys, string & names)
{
@@ -174,28 +146,13 @@ pair<int, bool> GetDrawRule(FeatureBase const & f, int level,
ASSERT ( keys.empty(), () );
Classificator const & c = classif();
- static UselessCheckPatch patch(c);
-
- bool hasHighway = false;
- for (size_t i = 0; i < types.Size(); ++i)
- if (patch.IsHighway(types[i]))
- {
- hasHighway = true;
- break;
- }
-
DrawRuleGetter doRules(level, types.GetGeoType(), keys
#ifdef DEBUG
, names
#endif
);
for (size_t i = 0; i < types.Size(); ++i)
- {
- if (!hasHighway && patch.IsOneway(types[i]))
- continue;
-
(void)c.ProcessObjects(types[i], doRules);
- }
return make_pair(types.GetGeoType(), types.Has(c.GetCoastType()));
}