forked from qt-creator/qt-creator
QMake/ProjectManager: Simplify QmakeProFileNode::applyEvaluate
... and remove ProjectNode::removeProjectNode, as this was the only remaining user. Change-Id: I2c53392a8e9dacf956270d652525b62ba4c9e0a4 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -726,18 +726,9 @@ void ProjectNode::addProjectNode(ProjectNode *subProject)
|
||||
|
||||
|
||||
/*!
|
||||
Remove the project node specified by \a subProject from the node hierarchy.
|
||||
|
||||
All objects in the \a subProjects list are deleted.
|
||||
Removes all child nodes from the node hierarchy and deletes them.
|
||||
*/
|
||||
|
||||
void ProjectNode::removeProjectNode(ProjectNode *subProject)
|
||||
{
|
||||
m_projectNodes.removeOne(subProject);
|
||||
m_folderNodes.removeOne(subProject);
|
||||
delete subProject;
|
||||
}
|
||||
|
||||
void ProjectNode::makeEmpty()
|
||||
{
|
||||
foreach (ProjectNode *subProject, m_projectNodes)
|
||||
|
||||
Reference in New Issue
Block a user