Commit b4e7500d authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

remove needless conditionals

parent 050b2e4a
......@@ -696,12 +696,9 @@ void Qt4PriFileNode::save(ProFile *includeFile)
void Qt4PriFileNode::clear()
{
// delete files && folders && projects
if (!fileNodes().isEmpty())
removeFileNodes(fileNodes(), this);
if (!subProjectNodes().isEmpty())
removeProjectNodes(subProjectNodes());
if (!subFolderNodes().isEmpty())
removeFolderNodes(subFolderNodes(), this);
removeFileNodes(fileNodes(), this);
removeProjectNodes(subProjectNodes());
removeFolderNodes(subFolderNodes(), this);
}
QStringList Qt4PriFileNode::varNames(FileType type)
......
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