diff options
author | Maxim Pimenov <m@maps.me> | 2019-07-02 02:31:25 +0300 |
---|---|---|
committer | Tatiana Yan <tatiana.kondakova@gmail.com> | 2019-07-02 18:51:58 +0300 |
commit | 32afdafc52b56ccdd1d9d453ebf8bd7485ab56cc (patch) | |
tree | 7495c97a2b31a2a7de6d0726dd8ccf118ef08fd6 /generator/cities_boundaries_builder.cpp | |
parent | e4620f5124a76145f72c63fddf61c74423647f50 (diff) |
[generator] Tests for the Cities Ids section.
Diffstat (limited to 'generator/cities_boundaries_builder.cpp')
-rw-r--r-- | generator/cities_boundaries_builder.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/generator/cities_boundaries_builder.cpp b/generator/cities_boundaries_builder.cpp index d38436b1dc..8f39dce8f5 100644 --- a/generator/cities_boundaries_builder.cpp +++ b/generator/cities_boundaries_builder.cpp @@ -39,24 +39,6 @@ namespace generator { namespace { -bool ParseFeatureIdToTestIdMapping(string const & path, unordered_map<uint32_t, uint64_t> & mapping) -{ - bool success = true; - feature::ForEachFromDat(path, [&](FeatureType & feature, uint32_t fid) { - auto const & metatada = feature.GetMetadata(); - auto const sid = metatada.Get(feature::Metadata::FMD_TEST_ID); - uint64_t tid; - if (!strings::to_uint64(sid, tid)) - { - LOG(LERROR, ("Can't parse test id from:", sid, "for a feature", fid)); - success = false; - return; - } - mapping.emplace(fid, tid); - }); - return success; -} - template <typename BoundariesTable, typename MappingReader> bool BuildCitiesBoundaries(string const & dataPath, BoundariesTable & table, MappingReader && reader) |