Meson: Cleanup mesonprojectplugin.*

Some unnneded code + final.

Change-Id: Ied2a29d20c624b8e5e2eefb56253b0412554ad44
Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-08-06 09:01:39 +02:00
parent 4dfb6f8c74
commit 9c930ac744
2 changed files with 3 additions and 20 deletions

View File

@@ -38,20 +38,11 @@
#include "settings/tools/toolssettingsaccessor.h" #include "settings/tools/toolssettingsaccessor.h"
#include "settings/tools/toolssettingspage.h" #include "settings/tools/toolssettingspage.h"
#include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/projectmanager.h> #include <projectexplorer/projectmanager.h>
#include <projectexplorer/runcontrol.h> #include <projectexplorer/runcontrol.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/parameteraction.h>
#include <QObject>
using namespace Core; using namespace Core;
using namespace ProjectExplorer; using namespace ProjectExplorer;
using namespace Utils; using namespace Utils;
@@ -113,8 +104,6 @@ bool MesonProjectPlugin::initialize(const QStringList & /*arguments*/, QString *
return true; return true;
} }
void MesonProjectPlugin::extensionsInitialized() {}
} // namespace Internal } // namespace Internal
} // namespace MesonProjectManager } // namespace MesonProjectManager

View File

@@ -30,22 +30,16 @@
namespace MesonProjectManager { namespace MesonProjectManager {
namespace Internal { namespace Internal {
class MesonProjectPlugin : public ExtensionSystem::IPlugin class MesonProjectPlugin final : public ExtensionSystem::IPlugin
{ {
Q_OBJECT Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "MesonProjectManager.json") Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "MesonProjectManager.json")
public: public:
~MesonProjectPlugin() override; ~MesonProjectPlugin() final;
#ifdef WITH_TESTS
private slots:
#endif
private: private:
bool initialize(const QStringList &arguments, QString *errorMessage) override; bool initialize(const QStringList &arguments, QString *errorMessage) final;
void extensionsInitialized() override;
class MesonProjectPluginPrivate *d = nullptr; class MesonProjectPluginPrivate *d = nullptr;
}; };