pivots = ma_pivots(node, type);
slots = ma_slots(node, type);
- if (ma_is_leaf(type))
- gaps = NULL;
- else
- gaps = ma_gaps(node, type);
-
+ gaps = ma_gaps(node, type);
offset = mas->offset;
min = mas_safe_min(mas, pivots, offset);
/* Skip out of bounds. */
return true;
}
- if (!ma_is_leaf(type))
- gaps = ma_gaps(mte_to_node(mas->node), type);
-
+ gaps = ma_gaps(mte_to_node(mas->node), type);
offset = mas->offset;
count = mt_slots[type];
min = mas_safe_min(mas, pivots, offset);
goto counted;
}
- if (!mte_is_leaf(mte))
- gaps = ma_gaps(mte_to_node(mte), mte_node_type(mte));
-
+ gaps = ma_gaps(mte_to_node(mte), mte_node_type(mte));
for (i = 0; i < mt_slot_count(mte); i++) {
p_end = mas_logical_pivot(mas, pivots, i, mte_node_type(mte));