diff --git a/include/vierkant/linear_hashmap.hpp b/include/vierkant/linear_hashmap.hpp index 5065ced4..69cf3358 100644 --- a/include/vierkant/linear_hashmap.hpp +++ b/include/vierkant/linear_hashmap.hpp @@ -132,7 +132,6 @@ class linear_hashmap void reserve(size_t new_capacity) { - new_capacity = crocore::next_pow_2(std::max(m_num_elements, new_capacity)); auto new_linear_hashmap = linear_hashmap(new_capacity); storage_item_t *ptr = m_storage.get(), *end = ptr + m_capacity; for(; ptr != end; ++ptr)