kernel/src/runtime/BinarySearchTree.h
/**
         * Recursively deletes the left and right subtrees of the given tree node, then deletes
         * the node itself.
         */
Recursively deletes the left and right subtrees of the given tree node, then deletes
the node itself.
Recursively deletes the left and right subtrees of the given tree node then deletes the node itself .
void deleteSubtree(Leaf *node) {
            if(!node) return;
            this->deleteSubtree(node->left);
            this->deleteSubtree(node->right);
            delete node;
        }
void deleteSubtree ( Leaf * node ) { if ( ! node ) return ; this -> deleteSubtree ( node -> left ) ; this -> deleteSubtree ( node -> right ) ; delete node ; }
Recursively deletes the left and right subtrees of the given tree node, then deletes
 the node itself.
Recursively deletes the left and right subtrees of the given tree node then deletes the node itself .