Commit 74352993 authored by Daniel Teske's avatar Daniel Teske

GenericProjectManager: Clean up code

Remove unused code and cancel any running indexing.

Change-Id: I1afbd6e4e041224e36c715242b8be31991259e86
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 004bbb09
......@@ -265,22 +265,7 @@ void GenericProject::refresh(RefreshOptions options)
foreach (const QString &file, files())
adder.maybeAdd(file);
QStringList filesToUpdate;
if (options & Configuration) {
foreach (const CppTools::ProjectFile &file, part->files)
filesToUpdate << file.path;
filesToUpdate.append(CppTools::CppModelManagerInterface::configurationFileName());
// Full update, if there's a code model update, cancel it
m_codeModelFuture.cancel();
} else if (options & Files) {
// Only update files that got added to the list
QSet<QString> newFileList;
foreach (const CppTools::ProjectFile &file, part->files)
newFileList.insert(file.path);
newFileList.subtract(oldFileList);
filesToUpdate.append(newFileList.toList());
}
m_codeModelFuture.cancel();
pinfo.appendProjectPart(part);
setProjectLanguage(ProjectExplorer::Constants::LANG_CXX, !part->files.isEmpty());
......
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