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