From b4e7500dbeaf2d051f18c3af7de4ee57af91682f Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Date: Fri, 4 Dec 2009 16:32:49 +0100 Subject: [PATCH] remove needless conditionals --- src/plugins/qt4projectmanager/qt4nodes.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp index cac4c591411..a566cf45d23 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.cpp +++ b/src/plugins/qt4projectmanager/qt4nodes.cpp @@ -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) -- GitLab