Skip to content

Commit ceb65a2

Browse files
committedDec 21, 2018
Remove template class
1 parent ff1f2df commit ceb65a2

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed
 

‎src/core/expression/qgsexpressionfunction.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,28 +1361,6 @@ static QVariant fcnNumSelected( const QVariantList &values, const QgsExpressionC
13611361
return layer->selectedFeatureCount();
13621362
}
13631363

1364-
template <class T>
1365-
T getParameterValue( const QString &name, const QVariantList &values, const QgsExpressionNodeFunction *nodeFunction )
1366-
{
1367-
T result;
1368-
QgsExpressionFunction *fd = QgsExpression::Functions().value( nodeFunction->fnIndex() );
1369-
if ( fd )
1370-
{
1371-
const auto &params = fd->parameters();
1372-
int idx = 0;
1373-
for ( const auto &param : params )
1374-
{
1375-
if ( param.name() == name )
1376-
{
1377-
return values.at( idx ).value<T>();
1378-
}
1379-
++idx;
1380-
}
1381-
}
1382-
1383-
return QVariant().value<T>();
1384-
};
1385-
13861364
static QVariant fcnSqliteFetchAndIncrement( const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent, const QgsExpressionNodeFunction * )
13871365
{
13881366
const QString database = values.at( 0 ).toString();

0 commit comments

Comments
 (0)
Please sign in to comment.