mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-31 00:03:42 -04:00
Remove some unused variables
This commit is contained in:
parent
3837ddfd3d
commit
be7f85bfa1
src
app
providers
@ -4349,7 +4349,6 @@ void QgisApp::askUserForOGRSublayers( QgsVectorLayer *layer )
|
||||
}
|
||||
|
||||
QStringList sublayers = layer->dataProvider()->subLayers();
|
||||
QString layertype = layer->dataProvider()->storageType();
|
||||
|
||||
QgsSublayersDialog::LayerDefinitionList list;
|
||||
Q_FOREACH ( const QString &sublayer, sublayers )
|
||||
|
@ -1106,10 +1106,10 @@ bool QgsDb2Provider::addFeatures( QgsFeatureList &flist, Flags flags )
|
||||
query.bindValue( bindIdx, bytea, QSql::In | QSql::Binary );
|
||||
}
|
||||
|
||||
QList<QVariant> list = query.boundValues().values();
|
||||
|
||||
// Show bound values
|
||||
#if 0
|
||||
QList<QVariant> list = query.boundValues().values();
|
||||
|
||||
for ( int i = 0; i < list.size(); ++i )
|
||||
{
|
||||
QgsDebugMsg( QString( "i: %1; value: %2; type: %3" )
|
||||
|
@ -715,7 +715,9 @@ bool QgsGrassVectorImport::import()
|
||||
QgsDebugMsg( "waitForFinished" );
|
||||
mProcess->waitForFinished( 30000 );
|
||||
|
||||
#ifdef QGISDEBUG
|
||||
QString stdoutString = mProcess->readAllStandardOutput().constData();
|
||||
#endif
|
||||
QString stderrString = mProcess->readAllStandardError().constData();
|
||||
|
||||
#ifdef QGISDEBUG
|
||||
|
@ -89,8 +89,10 @@ void QgsWfsLayerItem::copyStyle()
|
||||
|
||||
if ( !connection )
|
||||
{
|
||||
#ifdef QGISDEBUG
|
||||
QString errorMsg( QStringLiteral( "Cannot get style for layer %1" ).arg( this->name() ) );
|
||||
QgsDebugMsg( " Cannot get style: " + errorMsg );
|
||||
#endif
|
||||
#if 0
|
||||
// TODO: how to emit message from provider (which does not know about QgisApp)
|
||||
QgisApp::instance()->messageBar()->pushMessage( tr( "Cannot copy style" ),
|
||||
@ -105,8 +107,10 @@ void QgsWfsLayerItem::copyStyle()
|
||||
QgsGeoNodeStyle style = geoNodeRequest.fetchDefaultStyleBlocking( this->name() );
|
||||
if ( style.name.isEmpty() )
|
||||
{
|
||||
#ifdef QGISDEBUG
|
||||
QString errorMsg( QStringLiteral( "Cannot get style for layer %1" ).arg( this->name() ) );
|
||||
QgsDebugMsg( " Cannot get style: " + errorMsg );
|
||||
#endif
|
||||
#if 0
|
||||
// TODO: how to emit message from provider (which does not know about QgisApp)
|
||||
QgisApp::instance()->messageBar()->pushMessage( tr( "Cannot copy style" ),
|
||||
|
@ -54,7 +54,6 @@ QStringList QgsXyzConnectionUtils::connectionList()
|
||||
{
|
||||
settings.beginGroup( "qgis/connections-xyz/" + s );
|
||||
bool isHidden = settings.value( QStringLiteral( "hidden" ), false ).toBool();
|
||||
QString url = settings.value( QStringLiteral( "url" ), "" ).toString();
|
||||
settings.endGroup();
|
||||
if ( isHidden )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user