mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Remove obsolete plugin storage
Plugin storage was used before the value cache existed. With the value cache this is no longer used and can be removed. refs #660
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
|
||||
#include "blackcore/blackcoreexport.h"
|
||||
#include "blackcore/pluginmanager.h"
|
||||
#include "blackmisc/pluginstorageprovider.h"
|
||||
#include "blackmisc/sequence.h"
|
||||
#include "blackmisc/simulation/simulatorplugininfo.h"
|
||||
#include "blackmisc/simulation/simulatorplugininfolist.h"
|
||||
@@ -34,8 +33,7 @@ namespace BlackCore
|
||||
* Manages plugins for the simulator context.
|
||||
*/
|
||||
class BLACKCORE_EXPORT CPluginManagerSimulator :
|
||||
public BlackCore::IPluginManager,
|
||||
public BlackMisc::IPluginStorageProvider
|
||||
public BlackCore::IPluginManager
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -43,12 +41,6 @@ namespace BlackCore
|
||||
//! Ctor
|
||||
CPluginManagerSimulator(QObject *parent = nullptr);
|
||||
|
||||
//! \copydoc BlackMisc::IPluginStorageProvider::getPluginData
|
||||
virtual BlackMisc::CVariant getPluginData(const QObject *obj, const QString &key) const override;
|
||||
|
||||
//! \copydoc BlackMisc::IPluginStorageProvider::setPluginData
|
||||
virtual void setPluginData(const QObject *obj, const QString &key, const BlackMisc::CVariant &value) override;
|
||||
|
||||
//! Get simulator factory from the plugin
|
||||
ISimulatorFactory *getFactory(const QString &pluginId);
|
||||
|
||||
@@ -81,7 +73,6 @@ namespace BlackCore
|
||||
{
|
||||
BlackMisc::Simulation::CSimulatorPluginInfo info;
|
||||
ISimulatorListener *listener = nullptr;
|
||||
QHash<QString, BlackMisc::CVariant> storage; //!< Permanent plugin storage - data stored here will be kept even when plugin is unloaded
|
||||
};
|
||||
|
||||
QMap<QString, PluginExtended> m_plugins; //!< Id <-> extended data pairs
|
||||
|
||||
Reference in New Issue
Block a user