forked from qt-creator/qt-creator
ProjectExplorer: Remove Node::m_id
It was only used within cmake, in a role that is nowadays covered by buildKey. Change-Id: I4fd77c06a3bb8965db5235315cb017c7b548fbaa Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -128,11 +128,6 @@ void Node::setPriority(int p)
|
||||
m_priority = p;
|
||||
}
|
||||
|
||||
void Node::setNodeId(const QByteArray &nodeId)
|
||||
{
|
||||
m_nodeId = nodeId;
|
||||
}
|
||||
|
||||
void Node::setFilePath(const Utils::FileName &filePath)
|
||||
{
|
||||
m_filePath = filePath;
|
||||
@@ -237,11 +232,6 @@ int Node::line() const
|
||||
return m_line;
|
||||
}
|
||||
|
||||
QByteArray Node::id() const
|
||||
{
|
||||
return m_nodeId;
|
||||
}
|
||||
|
||||
QString Node::displayName() const
|
||||
{
|
||||
return filePath().fileName();
|
||||
@@ -346,7 +336,6 @@ FileNode *FileNode::clone() const
|
||||
{
|
||||
auto fn = new FileNode(filePath(), fileType());
|
||||
fn->setLine(line());
|
||||
fn->setNodeId(id());
|
||||
fn->setIsGenerated(isGenerated());
|
||||
fn->setEnabled(isEnabled());
|
||||
fn->setPriority(priority());
|
||||
@@ -794,12 +783,10 @@ bool FolderNode::showWhenEmpty() const
|
||||
|
||||
\sa ProjectExplorer::FileNode, ProjectExplorer::ProjectNode
|
||||
*/
|
||||
VirtualFolderNode::VirtualFolderNode(const Utils::FileName &folderPath, int priority,
|
||||
const QByteArray &id) :
|
||||
VirtualFolderNode::VirtualFolderNode(const Utils::FileName &folderPath, int priority) :
|
||||
FolderNode(folderPath, NodeType::VirtualFolder, QString())
|
||||
{
|
||||
setPriority(priority);
|
||||
setNodeId(id);
|
||||
}
|
||||
|
||||
QString VirtualFolderNode::addFileFilter() const
|
||||
|
||||
Reference in New Issue
Block a user