Commit 92816e64 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Remove unused createFloatItems method.

parent 97e3eee5
...@@ -75,25 +75,6 @@ PluginManager::~PluginManager() ...@@ -75,25 +75,6 @@ PluginManager::~PluginManager()
delete d; delete d;
} }
QList<AbstractFloatItem *> PluginManager::createFloatItems() const
{
QList<AbstractFloatItem *> floatItemList;
d->loadPlugins();
QList<RenderPlugin *>::const_iterator i = d->m_renderPluginTemplates.constBegin();
QList<RenderPlugin *>::const_iterator const end = d->m_renderPluginTemplates.constEnd();
for (; i != end; ++i) {
AbstractFloatItem * const floatItem = qobject_cast<AbstractFloatItem *>(*i);
if ( floatItem ) {
floatItemList.append( qobject_cast<AbstractFloatItem *>( floatItem->
newInstance() ));
}
}
return floatItemList;
}
template<class T> template<class T>
QList<T*> createPlugins( PluginManagerPrivate* d, const QList<T*> &loaders ) QList<T*> createPlugins( PluginManagerPrivate* d, const QList<T*> &loaders )
{ {
......
...@@ -48,12 +48,6 @@ class MARBLE_EXPORT PluginManager : public QObject ...@@ -48,12 +48,6 @@ class MARBLE_EXPORT PluginManager : public QObject
explicit PluginManager( QObject *parent = 0 ); explicit PluginManager( QObject *parent = 0 );
~PluginManager(); ~PluginManager();
/**
* This methods creates a new set of plugins and transfers ownership
* of them to the client.
*/
QList<AbstractFloatItem *> createFloatItems() const;
/** /**
* This methods creates a new set of plugins and transfers ownership * This methods creates a new set of plugins and transfers ownership
* of them to the client. * of them to the client.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment