Fix Dictionary::Remove return value if empty

This commit is contained in:
Wojciech Figat
2022-04-16 22:49:03 +02:00
parent 997d2a4db9
commit a6c14bd986

View File

@@ -653,11 +653,9 @@ public:
bool Remove(const KeyComparableType& key)
{
if (IsEmpty())
return true;
return false;
FindPositionResult pos;
FindPosition(key, pos);
if (pos.ObjectIndex != -1)
{
_allocation.Get()[pos.ObjectIndex].Delete();