mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
LibSQL: Remove superfluous VERIFY
s for Vector
accessing
Remove some `[]` operators' out-of-bounds checks which are already performed by the underlying `Vector`.
This commit is contained in:
parent
234bc0c237
commit
0460a654d4
4 changed files with 3 additions and 23 deletions
|
@ -197,21 +197,13 @@ bool TreeNode::insert_in_leaf(Key const& key)
|
|||
return true;
|
||||
}
|
||||
|
||||
Key const& TreeNode::operator[](size_t ix) const
|
||||
{
|
||||
VERIFY(ix < size());
|
||||
return m_entries[ix];
|
||||
}
|
||||
|
||||
u32 TreeNode::down_pointer(size_t ix) const
|
||||
{
|
||||
VERIFY(ix < m_down.size());
|
||||
return m_down[ix].pointer();
|
||||
}
|
||||
|
||||
TreeNode* TreeNode::down_node(size_t ix)
|
||||
{
|
||||
VERIFY(ix < m_down.size());
|
||||
return m_down[ix].node();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue