Skip to content

Commit 7781aeb

Browse files
committed
Remove deprecated functions in RelationsMapIndex
1 parent 7314118 commit 7781aeb

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

include/osmium/index/relations_map.hpp

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -192,30 +192,6 @@ namespace osmium {
192192

193193
~RelationsMapIndex() noexcept = default;
194194

195-
/**
196-
* Find the given relation id in the index and call the given
197-
* function with all parent relation ids.
198-
*
199-
* @code
200-
* osmium::unsigned_object_id_type member_id = 17;
201-
* index.for_each_parent(member_id, [](osmium::unsigned_object_id_type id) {
202-
* ...
203-
* });
204-
* @endcode
205-
*
206-
* @deprecated Use for_each() instead.
207-
*
208-
* Complexity: Logarithmic in the number of elements in the index.
209-
* (Lookup uses binary search.)
210-
*/
211-
template <typename TFunc>
212-
void for_each_parent(const osmium::unsigned_object_id_type member_id, TFunc&& func) const {
213-
const auto parents = m_map.get(member_id);
214-
for (auto it = parents.first; it != parents.second; ++it) {
215-
func(it->value);
216-
}
217-
}
218-
219195
/**
220196
* Find the given relation id in the index and call the given
221197
* function with all related relation ids.
@@ -373,23 +349,6 @@ namespace osmium {
373349
return m_map.size();
374350
}
375351

376-
/**
377-
* Build an index for member to parent lookups from the contents
378-
* of this stash and return it.
379-
*
380-
* After you get the index you can not use the stash any more!
381-
*
382-
* @deprecated Use build_member_to_parent_index() instead.
383-
*/
384-
RelationsMapIndex build_index() {
385-
assert(m_valid && "You can't use the RelationsMap any more after calling build_index()");
386-
m_map.sort_unique();
387-
#ifndef NDEBUG
388-
m_valid = false;
389-
#endif
390-
return RelationsMapIndex{std::move(m_map)};
391-
}
392-
393352
/**
394353
* Build an index for member to parent lookups from the contents
395354
* of this stash and return it.

0 commit comments

Comments
 (0)