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:
hjk
2017-01-31 17:14:43 +01:00
parent c2e69f7cfb
commit 39a8442f80
2 changed files with 29 additions and 108 deletions

View File

@@ -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)