forked from qt-creator/qt-creator
Clang: Remove dead code
Change-Id: Ic81768748bb998d73906dcfc599a52f8c363f5b8 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
@@ -376,16 +376,6 @@ void IpcCommunicator::registerProjectsParts(const QList<CppTools::ProjectPart::P
|
|||||||
registerProjectPartsForEditor(projectPartContainers);
|
registerProjectPartsForEditor(projectPartContainers);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IpcCommunicator::registerTranslationUnit(TextEditor::TextDocument *document)
|
|
||||||
{
|
|
||||||
const QString filePath = document->filePath().toString();
|
|
||||||
const QString projectPartId = Utils::projectPartIdForFile(filePath);
|
|
||||||
|
|
||||||
registerTranslationUnitsForEditor({{Utf8String(filePath),
|
|
||||||
Utf8String(projectPartId),
|
|
||||||
uint(document->document()->revision())}});
|
|
||||||
}
|
|
||||||
|
|
||||||
void IpcCommunicator::updateTranslationUnitFromCppEditorDocument(const QString &filePath)
|
void IpcCommunicator::updateTranslationUnitFromCppEditorDocument(const QString &filePath)
|
||||||
{
|
{
|
||||||
const auto document = CppTools::CppModelManager::instance()->cppEditorDocument(filePath);
|
const auto document = CppTools::CppModelManager::instance()->cppEditorDocument(filePath);
|
||||||
@@ -426,25 +416,6 @@ void setLastSentDocumentRevision(const QString &filePath,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IpcCommunicator::registerTranslationUnit(const QString &filePath,
|
|
||||||
const QByteArray &contents,
|
|
||||||
uint documentRevision)
|
|
||||||
{
|
|
||||||
const QString projectPartId = Utils::projectPartIdForFile(filePath);
|
|
||||||
|
|
||||||
if (documentHasChanged(filePath)) {
|
|
||||||
const bool hasUnsavedContent = true;
|
|
||||||
|
|
||||||
registerTranslationUnitsForEditor({{filePath,
|
|
||||||
projectPartId,
|
|
||||||
Utf8String::fromByteArray(contents),
|
|
||||||
hasUnsavedContent,
|
|
||||||
documentRevision}});
|
|
||||||
|
|
||||||
setLastSentDocumentRevision(filePath, documentRevision);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void IpcCommunicator::updateTranslationUnit(const QString &filePath,
|
void IpcCommunicator::updateTranslationUnit(const QString &filePath,
|
||||||
const QByteArray &contents,
|
const QByteArray &contents,
|
||||||
uint documentRevision)
|
uint documentRevision)
|
||||||
|
|||||||
@@ -133,8 +133,6 @@ public:
|
|||||||
|
|
||||||
void registerProjectsParts(const QList<CppTools::ProjectPart::Ptr> projectParts);
|
void registerProjectsParts(const QList<CppTools::ProjectPart::Ptr> projectParts);
|
||||||
|
|
||||||
void registerTranslationUnit(TextEditor::TextDocument *document);
|
|
||||||
void registerTranslationUnit(const QString &filePath, const QByteArray &contents, uint documentRevision);
|
|
||||||
void updateTranslationUnitIfNotCurrentDocument(Core::IDocument *document);
|
void updateTranslationUnitIfNotCurrentDocument(Core::IDocument *document);
|
||||||
void updateTranslationUnit(Core::IDocument *document);
|
void updateTranslationUnit(Core::IDocument *document);
|
||||||
void updateUnsavedFile(Core::IDocument *document);
|
void updateUnsavedFile(Core::IDocument *document);
|
||||||
|
|||||||
Reference in New Issue
Block a user