forked from qt-creator/qt-creator
Remove ExtraCompilerFactoryObserver
Was only used by PchManager. Change-Id: I610c1d4215613eb494e48225329660c1e2680d49 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -53,7 +53,7 @@ namespace ProjectExplorer {
|
||||
|
||||
Q_GLOBAL_STATIC(QThreadPool, s_extraCompilerThreadPool);
|
||||
Q_GLOBAL_STATIC(QList<ExtraCompilerFactory *>, factories);
|
||||
Q_GLOBAL_STATIC(QVector<ExtraCompilerFactoryObserver *>, observers);
|
||||
|
||||
class ExtraCompilerPrivate
|
||||
{
|
||||
public:
|
||||
@@ -322,14 +322,6 @@ ExtraCompilerFactory::~ExtraCompilerFactory()
|
||||
factories->removeAll(this);
|
||||
}
|
||||
|
||||
void ExtraCompilerFactory::annouceCreation(const Project *project,
|
||||
const Utils::FilePath &source,
|
||||
const Utils::FilePaths &targets)
|
||||
{
|
||||
for (ExtraCompilerFactoryObserver *observer : qAsConst(*observers))
|
||||
observer->newExtraCompiler(project, source, targets);
|
||||
}
|
||||
|
||||
QList<ExtraCompilerFactory *> ExtraCompilerFactory::extraCompilerFactories()
|
||||
{
|
||||
return *factories();
|
||||
@@ -465,14 +457,4 @@ void ProcessExtraCompiler::cleanUp()
|
||||
setCompileTime(QDateTime::currentDateTime());
|
||||
}
|
||||
|
||||
ExtraCompilerFactoryObserver::ExtraCompilerFactoryObserver()
|
||||
{
|
||||
observers->push_back(this);
|
||||
}
|
||||
|
||||
ExtraCompilerFactoryObserver::~ExtraCompilerFactoryObserver()
|
||||
{
|
||||
observers->removeOne(this);
|
||||
}
|
||||
|
||||
} // namespace ProjectExplorer
|
||||
|
||||
Reference in New Issue
Block a user