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>2011-08-31 16:37:00 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:22:48 +0300
commit8d9b7c1589115d414e9fda74a944bad4d5a6fedc (patch)
tree561744601b89df7faad6dfbba2c3da9fa2686bfd /generator/data_generator.cpp
parent718fd2960ee25ff545a3e7c638583a7e3e17af68 (diff)
- Remove old code (mapped ways routine).
- Some minor code fixes.
Diffstat (limited to 'generator/data_generator.cpp')
-rw-r--r--generator/data_generator.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/generator/data_generator.cpp b/generator/data_generator.cpp
index 14cbdfb8f8..3100708201 100644
--- a/generator/data_generator.cpp
+++ b/generator/data_generator.cpp
@@ -8,6 +8,7 @@
#include "../std/bind.hpp"
+
namespace data
{
@@ -46,17 +47,6 @@ public:
add_id2rel_vector(this->m_ways2rel, id, e.ways);
}
- void AddMappedWay(user_id_t id, WayElement const & e, bool emptyTags)
- {
- typedef cache::MappedWay way_t;
-
- way_t::WayType const directType = (emptyTags ? way_t::empty_direct : way_t::coast_direct);
- way_t::WayType const oppositeType = (emptyTags ? way_t::empty_opposite : way_t::coast_opposite);
-
- this->m_mappedWays.write(e.nodes.front(), way_t(id, directType)); // direct
- this->m_mappedWays.write(e.nodes.back(), way_t(id, oppositeType)); // opposite
- }
-
void SaveIndex()
{
this->m_ways.SaveOffsets();
@@ -64,7 +54,6 @@ public:
this->m_nodes2rel.flush_to_file();
this->m_ways2rel.flush_to_file();
- this->m_mappedWays.flush_to_file();
}
};