aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/runcontrol.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-03-20 11:40:53 +0100
committerhjk <hjk@qt.io>2019-03-20 14:06:42 +0000
commit00eae6f204761ff5d551bc421af3d7fa59c4b980 (patch)
treeb6928c201f18b1e322af84a75e7e7bb904e38faf /src/plugins/projectexplorer/runcontrol.h
parent9dac0766503ec3fc6b8283f90149956c7e06cab2 (diff)
ProjectExplorer: Replace one overload of RunControl::registerWorker
... by using factory members in the plugin pimpl. This also (intentionally) transfers ownership of the factories to the plugins, effectively progressing on the "FIXME:" in runcontrol.h:164. Change-Id: Ia75ee034d25a75b5d5bff6b2fa2b3471347d1a14 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/runcontrol.h')
-rw-r--r--src/plugins/projectexplorer/runcontrol.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h
index f4b5ae5c82..b2164bc44a 100644
--- a/src/plugins/projectexplorer/runcontrol.h
+++ b/src/plugins/projectexplorer/runcontrol.h
@@ -257,14 +257,6 @@ public:
static void registerWorkerCreator(Core::Id id, const WorkerCreator &workerCreator);
- static void registerWorker(Core::Id runMode, const WorkerCreator &producer,
- const Constraint &constraint = {})
- {
- auto factory = new RunWorkerFactory;
- factory->setProducer(producer);
- factory->addSupportedRunMode(runMode);
- factory->addConstraint(constraint);
- }
template <class Worker>
static void registerWorker(Core::Id runMode, const Constraint &constraint)
{