CMake: Disable switching between different readers

Remove the code that switches between different types of
readers based on what the different CMake binaries support.

This is no longer needed since only file-api is supported now.

Change-Id: Ia86d143f5e2cecc2bcd68ab7d62503915a32d223
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Tobias Hunger
2020-04-03 11:43:29 +02:00
parent 2a664afaa1
commit 902b1c3b9e
9 changed files with 50 additions and 219 deletions

View File

@@ -54,6 +54,8 @@ FileApiReader::FileApiReader() {}
FileApiReader::~FileApiReader()
{
if (isParsing())
emit errorOccurred(tr("Parsing has been canceled."));
stop();
resetData();
}
@@ -74,15 +76,6 @@ void FileApiReader::setParameters(const BuildDirParameters &p)
if (!m_isParsing)
emit dirty();
});
qCDebug(cmakeFileApiMode) << "FileApiReader: IS READY NOW SIGNAL";
emit isReadyNow();
}
bool FileApiReader::isCompatible(const BuildDirParameters &p)
{
const CMakeTool *cmakeTool = p.cmakeTool();
return cmakeTool && cmakeTool->readerType() == CMakeTool::FileApi;
}
void FileApiReader::resetData()