mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
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:
parent
cb0cc43722
commit
4a86911148
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user