1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 17:28:10 +00:00

LibSQL: Remove superfluous VERIFYs for Vector accessing

Remove some `[]` operators' out-of-bounds checks which are already
performed by the underlying `Vector`.
This commit is contained in:
Jelle Raaijmakers 2022-11-26 01:14:05 +01:00 committed by Andreas Kling
parent 234bc0c237
commit 0460a654d4
4 changed files with 3 additions and 23 deletions

View file

@ -91,18 +91,6 @@ Optional<size_t> Tuple::index_of(String name) const
return {};
}
Value const& Tuple::operator[](size_t ix) const
{
VERIFY(ix < m_data.size());
return m_data[ix];
}
Value& Tuple::operator[](size_t ix)
{
VERIFY(ix < m_data.size());
return m_data[ix];
}
Value const& Tuple::operator[](String const& name) const
{
auto index = index_of(name);