1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:18:11 +00:00

AK: Remove return value from HashTable::remove() and HashMap::remove()

This was only used by remove_all_matching(), where it's no longer used.
This commit is contained in:
Andreas Kling 2022-03-06 19:14:29 +01:00
parent 623bdd8b6a
commit eb829924da
2 changed files with 3 additions and 8 deletions

View file

@ -389,7 +389,7 @@ public:
return false;
}
Iterator remove(Iterator iterator)
void remove(Iterator iterator)
{
VERIFY(iterator.m_bucket);
auto& bucket = *iterator.m_bucket;
@ -399,14 +399,9 @@ public:
if constexpr (!IsOrdered)
VERIFY(!bucket.end);
auto next_iterator = iterator;
++next_iterator;
delete_bucket(bucket);
--m_size;
++m_deleted_count;
return next_iterator;
}
template<typename TUnaryPredicate>