From 052f8ae98a5892515a8b14c9c6f4563ab1b1228e Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 18 Jan 2018 14:43:22 +0100 Subject: [PATCH] ProjectExplorer: Don't add plugin to object pool The addObject/removeObject there was part of the initial commit, it does not seem to be used or needed anymore. Change-Id: I6f359da34a63a94aa8312f15c3a9b3f92fd8ee2a Reviewed-by: Eike Ziller Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/projectexplorer.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 5ae3527fcfe..021dc315938 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -483,8 +483,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er CustomWizard::setVerbose(arguments.count(QLatin1String("-customwizard-verbose"))); JsonWizardFactory::setVerbose(arguments.count(QLatin1String("-customwizard-verbose"))); - addObject(this); - addAutoReleasedObject(new DeviceManager); #ifdef WITH_JOURNALD @@ -1653,7 +1651,6 @@ ExtensionSystem::IPlugin::ShutdownFlag ProjectExplorerPlugin::aboutToShutdown() // might shutdown asynchronously). removeObject(dd->m_welcomePage); delete dd->m_welcomePage; - removeObject(this); if (dd->m_activeRunControlCount == 0) return SynchronousShutdown;