Skip to content

Commit

Permalink
minor purge a pow2-calc
Browse files Browse the repository at this point in the history
  • Loading branch information
crocdialer committed Oct 5, 2024
1 parent 57dcd86 commit f68e6d3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/vierkant/linear_hashmap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ class linear_hashmap

void reserve(size_t new_capacity)
{
new_capacity = crocore::next_pow_2(std::max<size_t>(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)
Expand Down

0 comments on commit f68e6d3

Please sign in to comment.