diff --git a/src/plugins/qmakeprojectmanager/qmakeproject.cpp b/src/plugins/qmakeprojectmanager/qmakeproject.cpp index 85bf9e64c98..f75cc8653b4 100644 --- a/src/plugins/qmakeprojectmanager/qmakeproject.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeproject.cpp @@ -990,11 +990,6 @@ void QmakeProject::unwatchFolders(const QStringList &l, QmakePriFileNode *node) //////////// // All the folder have a trailing slash! - -namespace { - bool debugCFW = false; -} - CentralizedFolderWatcher::CentralizedFolderWatcher(QmakeProject *parent) : QObject(parent), m_project(parent) { @@ -1020,8 +1015,6 @@ QSet CentralizedFolderWatcher::recursiveDirs(const QString &folder) void CentralizedFolderWatcher::watchFolders(const QList &folders, QmakePriFileNode *node) { - if (debugCFW) - qDebug()<<"CFW::watchFolders()"<filePath(); m_watcher.addPaths(folders); const QChar slash = QLatin1Char('/'); @@ -1037,16 +1030,11 @@ void CentralizedFolderWatcher::watchFolders(const QList &folders, Qmake if (!tmp.isEmpty()) m_watcher.addPaths(tmp.toList()); m_recursiveWatchedFolders += tmp; - - if (debugCFW) - qDebug()<<"adding recursive dirs for"<< folder<<":"< &folders, QmakePriFileNode *node) { - if (debugCFW) - qDebug()<<"CFW::unwatchFolders()"<filePath(); const QChar slash = QLatin1Char('/'); foreach (const QString &f, folders) { QString folder = f; @@ -1082,12 +1070,8 @@ void CentralizedFolderWatcher::unwatchFolders(const QList &folders, Qma } } - if (debugCFW) - qDebug()<<"removing recursive dirs for"< tmp = recursiveDirs(folderWithSlash); if (!tmp.isEmpty()) { - if (debugCFW) - qDebug()<<"found new recursive dirs"< alreadyAdded = m_watcher.directories().toSet(); tmp.subtract(alreadyAdded); if (!tmp.isEmpty())