From 4a86911148f29aabebda2a05839d197dafe28025 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 7 Oct 2019 15:49:30 +0200 Subject: [PATCH] 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" --- src/app/qgisapp.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index f9042f368a7..670939e417f 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -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,