forked from qt-creator/qt-creator
Nodes: Remove findFile and findFolder methods
There may be more than one matching node, so these methods provided a false sense of reliability. Change-Id: I6471b74a1d2dd4e8afc7e836fec45355696a0741 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -313,24 +313,6 @@ void FolderNode::setIcon(const QIcon &icon)
|
||||
m_icon = icon;
|
||||
}
|
||||
|
||||
FileNode *FolderNode::findFile(const QString &path)
|
||||
{
|
||||
foreach (FileNode *n, fileNodes()) {
|
||||
if (n->path() == path)
|
||||
return n;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
FolderNode *FolderNode::findSubFolder(const QString &path)
|
||||
{
|
||||
foreach (FolderNode *n, subFolderNodes()) {
|
||||
if (n->path() == path)
|
||||
return n;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool FolderNode::addFiles(const QStringList &filePaths, QStringList *notAdded)
|
||||
{
|
||||
if (projectNode())
|
||||
|
||||
Reference in New Issue
Block a user