AVLTree: Unify removal implementations.
Extracted from hamishm's eventqueue patches.
This commit is contained in:
@@ -105,11 +105,7 @@ public:
|
||||
|
||||
inline void Remove()
|
||||
{
|
||||
if (AVLTreeNode* node = ConstIterator::fTreeIterator.Remove()) {
|
||||
AVLTree<Definition>* parent
|
||||
= const_cast<AVLTree<Definition>*>(
|
||||
ConstIterator::fParent);
|
||||
}
|
||||
ConstIterator::fTreeIterator.Remove();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user