Skip to content
Permalink
Browse files

Remove crap API

  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 6, 2018
1 parent 16e2aad commit 9688bc27340c5d06f539d21b41d956067be38156
@@ -204,17 +204,6 @@ Returns the matching algorithm by ``name``, or a None if no matching
algorithm is contained by this provider.

.. seealso:: :py:func:`algorithms`
%End

virtual QgsProcessingParameterDefinition *createParameter( const QString &type, const QString &name ) /Factory/;
%Docstring
Returns a new parameter from of the given type and name.
This should be reimplemented by providers that implement custom types.
If the provider does not implement the parameter with ``type``, a None will be returned.

By default, this returns a None.

.. versionadded:: 3.2
%End

signals:
@@ -74,13 +74,6 @@ const QgsProcessingAlgorithm *QgsProcessingProvider::algorithm( const QString &n
return mAlgorithms.value( name );
}

QgsProcessingParameterDefinition *QgsProcessingProvider::createParameter( const QString &type, const QString &name )
{
Q_UNUSED( type )
Q_UNUSED( name )
return nullptr;
}

bool QgsProcessingProvider::addAlgorithm( QgsProcessingAlgorithm *algorithm )
{
if ( !algorithm )
@@ -203,17 +203,6 @@ class CORE_EXPORT QgsProcessingProvider : public QObject
*/
const QgsProcessingAlgorithm *algorithm( const QString &name ) const;

/**
* Returns a new parameter from of the given type and name.
* This should be reimplemented by providers that implement custom types.
* If the provider does not implement the parameter with \a type, a nullptr will be returned.
*
* By default, this returns a nullptr.
*
* \since QGIS 3.2
*/
virtual QgsProcessingParameterDefinition *createParameter( const QString &type, const QString &name ) SIP_FACTORY;

signals:

/**

0 comments on commit 9688bc2

Please sign in to comment.
You can’t perform that action at this time.