diff options
author | vng <viktor.govako@gmail.com> | 2013-08-29 19:28:01 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:00:33 +0300 |
commit | 7e4eac4f83db23c38f4f8e15bfa68abec21e13ec (patch) | |
tree | a82504f636b4e4ef63de1aae0abd2f14d9449c0e /indexer/types_mapping.cpp | |
parent | 611672176e68b8eb72d1ef7507ed6576eae1a032 (diff) |
Remove obsolete code.
Diffstat (limited to 'indexer/types_mapping.cpp')
-rw-r--r-- | indexer/types_mapping.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indexer/types_mapping.cpp b/indexer/types_mapping.cpp index 12e538d3a1..a97e8b6716 100644 --- a/indexer/types_mapping.cpp +++ b/indexer/types_mapping.cpp @@ -5,6 +5,12 @@ #include "../base/stl_add.hpp" +void IndexAndTypeMapping::Clear() +{ + m_types.clear(); + m_map.clear(); +} + void IndexAndTypeMapping::Load(istream & s) { Classificator const & c = classif(); @@ -31,8 +37,8 @@ void IndexAndTypeMapping::Load(istream & s) void IndexAndTypeMapping::Add(uint32_t ind, uint32_t type) { ASSERT_EQUAL ( ind, m_types.size(), () ); - m_types.push_back(type); + m_types.push_back(type); m_map.insert(make_pair(type, ind)); } |