Skip to content
Permalink
Browse files

Remove some unused variables

  • Loading branch information
nyalldawson committed Sep 25, 2017
1 parent 3837ddf commit be7f85bfa18d48dc09bbbcdcd0503ad9196e69ec
@@ -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 )
{

0 comments on commit be7f85b

Please sign in to comment.
You can’t perform that action at this time.