[FR] Convenience function: AudioProcessorGraph::removeNode (AudioProcessorGraph::Node::Ptr)


#1

As the title says, just requesting a convenience function to the AudioProcessorGraph for removing nodes by the reference-counted pointer.

When dealing with the graph, you tend to keep Node::Ptr hanging around - so it would make things just a bit more direct. Also, it seems a bit more intuitive to have a removeNode() work the same as addNode().

Perhaps something quick and easy like this?

bool AudioProcessorGraph::removeNode (AudioProcessorGraph::Node::Ptr node)
{
    if (node != nullptr)
        return removeNode (node->nodeId);

    jassertfalse;
    return false;
}

#2

OK. I've added it on the latest tip. Thank you for the suggestion!