Skip to content
Permalink
Browse files
Remove unused code
  • Loading branch information
nyalldawson committed Jul 12, 2021
1 parent e736899 commit 218dded2eef897d3b8cae2c91ed9a6756a57aa58
Showing with 0 additions and 12 deletions.
  1. +0 −12 src/app/qgisapp.cpp
@@ -15744,18 +15744,6 @@ void QgisApp::renameView()

QgsRasterLayer *QgisApp::addRasterLayerPrivate( const QString &uri, const QString &name, const QString &providerKey, bool guiWarning )
{
QString shortName = name;
QRegularExpression reRasterFile( QStringLiteral( "^/vsi(.+/)*([^ ]+)( .+)?$" ), QRegularExpression::CaseInsensitiveOption );
QRegularExpressionMatch matchRasterFile = reRasterFile.match( name );

if ( matchRasterFile.hasMatch() )
{
if ( !matchRasterFile.captured( 2 ).isEmpty() )
{
shortName = matchRasterFile.captured( 2 );
}
}

return addLayerPrivate< QgsRasterLayer >( QgsMapLayerType::RasterLayer, uri, shortName, providerKey, guiWarning );
}

0 comments on commit 218dded

Please sign in to comment.