[map] Minor remove if condition
This commit is contained in:
parent
4ec706980c
commit
42db8be189
|
@ -172,7 +172,7 @@ struct hb_hashmap_t
|
|||
for (auto &_ : hb_iter (new_items, new_size))
|
||||
new (&_) item_t ();
|
||||
|
||||
unsigned int old_size = mask + 1;
|
||||
unsigned int old_size = mask ? mask + 1 : 0;
|
||||
item_t *old_items = items;
|
||||
|
||||
/* Switch to new, empty, array. */
|
||||
|
@ -182,7 +182,6 @@ struct hb_hashmap_t
|
|||
items = new_items;
|
||||
|
||||
/* Insert back old items. */
|
||||
if (old_items)
|
||||
for (unsigned int i = 0; i < old_size; i++)
|
||||
{
|
||||
if (old_items[i].is_real ())
|
||||
|
|
Loading…
Reference in New Issue