Skip to content

Commit

Permalink
Remove crap API
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 6, 2018
1 parent 16e2aad commit 9688bc2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
11 changes: 0 additions & 11 deletions python/core/processing/qgsprocessingprovider.sip.in
Expand Up @@ -204,17 +204,6 @@ Returns the matching algorithm by ``name``, or a None if no matching
algorithm is contained by this provider. algorithm is contained by this provider.


.. seealso:: :py:func:`algorithms` .. 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 %End


signals: signals:
Expand Down
7 changes: 0 additions & 7 deletions src/core/processing/qgsprocessingprovider.cpp
Expand Up @@ -74,13 +74,6 @@ const QgsProcessingAlgorithm *QgsProcessingProvider::algorithm( const QString &n
return mAlgorithms.value( name ); 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 ) bool QgsProcessingProvider::addAlgorithm( QgsProcessingAlgorithm *algorithm )
{ {
if ( !algorithm ) if ( !algorithm )
Expand Down
11 changes: 0 additions & 11 deletions src/core/processing/qgsprocessingprovider.h
Expand Up @@ -203,17 +203,6 @@ class CORE_EXPORT QgsProcessingProvider : public QObject
*/ */
const QgsProcessingAlgorithm *algorithm( const QString &name ) const; 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: signals:


/** /**
Expand Down

0 comments on commit 9688bc2

Please sign in to comment.