Skip to content
Permalink
Browse files

Remove unused variables

  • Loading branch information
nyalldawson committed Oct 22, 2016
1 parent fae8071 commit 945983142277f0cf635a3dd9f131db5040faedb6
@@ -1240,7 +1240,6 @@ void QgsPluginManager::on_wvDetails_linkClicked( const QUrl & url )
if ( url.host() == "plugin.vote" )
{
QString params = url.path();
QString response;
sendVote( params.split( '/' )[1].toInt(), params.split( '/' )[2].toInt() );
}
}
@@ -87,8 +87,6 @@ QString QgsValueMapWidgetFactory::representValue( QgsVectorLayer* vl, int fieldI
Q_UNUSED( cache )

QString valueInternalText;
QString valueDisplayText;
QSettings settings;
if ( value.isNull() )
valueInternalText = QString( VALUEMAP_NULL_TEXT );
else
@@ -825,10 +825,6 @@ QgsGrassModuleGdalInput::QgsGrassModuleGdalInput(
// Check if this parameter is required
mRequired = gnode.toElement().attribute( "required" ) == "yes";

QDomNode promptNode = gnode.namedItem( "gisprompt" );
QDomElement promptElem = promptNode.toElement();
QString element = promptElem.attribute( "element" );

// Read "layeroption" is defined
QString opt = qdesc.attribute( "layeroption" );
if ( ! opt.isNull() )
@@ -1483,10 +1479,6 @@ QgsGrassModuleFile::QgsGrassModuleFile(
}
adjustTitle();

QDomNode promptNode = gnode.namedItem( "gisprompt" );
QDomElement promptElem = promptNode.toElement();
QString element = promptElem.attribute( "element" );

if ( qdesc.attribute( "type" ).toLower() == "new" )
{
mType = New;
@@ -720,9 +720,6 @@ void QgsGrassPlugin::redrawRegion()

void QgsGrassPlugin::openMapset()
{

QString element;

QgsGrassSelect *sel = new QgsGrassSelect( qGisInterface->mainWindow(), QgsGrassSelect::MAPSET );

if ( !sel->exec() )
@@ -248,7 +248,6 @@ void QgsGrassSelect::setMaps()

// Mapset directory
QString ldpath = egisdbase->text() + "/" + elocation->currentText() + "/" + emapset->currentText();
QDir ld = QDir( ldpath );

int idx = 0;
int sel = -1;
@@ -855,7 +855,6 @@ bool QgsGrassMapsetItem::handleDrop( const QMimeData * data, Qt::DropAction )
}
else if ( u.layerType == "vector" )
{
QString path = mPath + "/" + "raster" + "/" + u.name;
QgsGrassObject vectorObject( mGrassObject.gisdbase(), mGrassObject.location(), mGrassObject.mapset(), destName, QgsGrassObject::Vector );
import = new QgsGrassVectorImport( vectorProvider, vectorObject ); // takes provider ownership
}
@@ -2099,7 +2099,6 @@ QGISEXTERN bool saveStyle( const QString& uri, const QString& qmlStyle, const QS

QGISEXTERN QString loadStyle( const QString& uri, QString& errCause )
{
QString style;
QgsDataSourceUri dsUri( uri );
// connect to database
QSqlDatabase mDatabase = QgsMssqlProvider::GetDatabase( dsUri.service(), dsUri.host(), dsUri.database(), dsUri.username(), dsUri.password() );
@@ -3862,7 +3862,6 @@ static QString getNextString( const QString& txt, int& i, const QString& sep )
}
else
{
QString ret;
int sepPos = cur.indexOf( sep );
if ( sepPos < 0 )
{

0 comments on commit 9459831

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