forked from qt-creator/qt-creator
CppTools/Clang: Remove InMemoryInfo
...nowadays we only need the working copy. Change-Id: I30924b3c5dc68b428d6c10f6ba015b0640b476d2 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
#include "baseeditordocumentprocessor.h"
|
||||
|
||||
#include "cppmodelmanager.h"
|
||||
#include "cpptoolsreuse.h"
|
||||
#include "editordocumenthandle.h"
|
||||
|
||||
namespace CppTools {
|
||||
@@ -82,10 +81,10 @@ void BaseEditorDocumentParser::setConfiguration(const Configuration &configurati
|
||||
m_configuration = configuration;
|
||||
}
|
||||
|
||||
void BaseEditorDocumentParser::update(const InMemoryInfo &info)
|
||||
void BaseEditorDocumentParser::update(const WorkingCopy &workingCopy)
|
||||
{
|
||||
QMutexLocker locker(&m_updateIsRunning);
|
||||
updateHelper(info);
|
||||
updateHelper(workingCopy);
|
||||
}
|
||||
|
||||
BaseEditorDocumentParser::State BaseEditorDocumentParser::state() const
|
||||
@@ -148,11 +147,4 @@ ProjectPart::Ptr BaseEditorDocumentParser::determineProjectPart(const QString &f
|
||||
return projectPart;
|
||||
}
|
||||
|
||||
BaseEditorDocumentParser::InMemoryInfo::InMemoryInfo(bool withModifiedFiles)
|
||||
: workingCopy(CppTools::CppModelManager::instance()->workingCopy())
|
||||
{
|
||||
if (withModifiedFiles)
|
||||
modifiedFiles = CppTools::modifiedFiles();
|
||||
}
|
||||
|
||||
} // namespace CppTools
|
||||
|
||||
Reference in New Issue
Block a user