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