Commit 7648504a authored by Tobias Hunger's avatar Tobias Hunger
Browse files

FolderNode: Remove makeEmpty() again



It is no longer necessary.

Change-Id: Id044ace6f0861bc0fc659fb6d6823da1f0082bc9
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 3c85c005
......@@ -280,7 +280,6 @@ void BuildDirManager::generateProjectTree(CMakeListsNode *root, const QList<cons
const Utils::FileName projectFile = m_buildConfiguration->target()->project()->projectFilePath();
root->makeEmpty();
m_reader->generateProjectTree(root, allFiles);
// Make sure the top level CMakeLists.txt is always visible:
......
......@@ -593,15 +593,6 @@ void FolderNode::removeNode(Node *node)
m_nodes.removeOne(node);
}
/*!
Removes all files and subfolders from this folder node.
*/
void FolderNode::makeEmpty()
{
qDeleteAll(m_nodes);
m_nodes.clear();
}
bool FolderNode::showInSimpleTree() const
{
return false;
......
......@@ -235,7 +235,6 @@ public:
void addNode(Node *node);
void removeNode(Node *node);
void makeEmpty();
bool isEmpty() const;
FolderNode *asFolderNode() override { return this; }
......
......@@ -92,7 +92,6 @@ void setupQbsProductData(QbsProjectManager::Internal::QbsProductNode *node,
const qbs::ProductData &prd, const qbs::Project &project)
{
using namespace QbsProjectManager::Internal;
node->makeEmpty();
node->setEnabled(prd.isEnabled());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment