splitSubLayerDef(): remove useless code path

Since 144e9a2e457d48ca7680d6bbc7a0c74b59a6b2ad, we no longer use
':' as the separator for the OGR sublayer informations. Consequently
we no longer need the hack that was needed to merged back Windows
paths like "C" : "\foo"
This commit is contained in:
Even Rouault 2019-10-07 15:49:30 +02:00
parent cb0cc43722
commit 4a86911148
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -4807,14 +4807,7 @@ QString QgisApp::crsAndFormatAdjustedLayerUri( const QString &uri, const QString
static QStringList splitSubLayerDef( const QString &subLayerDef )
{
QStringList elements = subLayerDef.split( QgsDataProvider::SUBLAYER_SEPARATOR );
// merge back parts of the name that may have been split
while ( elements.size() > 5 )
{
elements[1] += ":" + elements[2];
elements.removeAt( 2 );
}
return elements;
return subLayerDef.split( QgsDataProvider::SUBLAYER_SEPARATOR );
}
static void setupVectorLayer( const QString &vectorLayerPath,