Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 22, 2016
1 parent fae8071 commit 9459831
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -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() );
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/gui/editorwidgets/qgsvaluemapwidgetfactory.cpp
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions src/plugins/grass/qgsgrassmoduleparam.cpp
Expand Up @@ -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() )
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/plugins/grass/qgsgrassplugin.cpp
Expand Up @@ -720,9 +720,6 @@ void QgsGrassPlugin::redrawRegion()

void QgsGrassPlugin::openMapset()
{

QString element;

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

if ( !sel->exec() )
Expand Down
1 change: 0 additions & 1 deletion src/plugins/grass/qgsgrassselect.cpp
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/providers/grass/qgsgrassprovidermodule.cpp
Expand Up @@ -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
}
Expand Down
1 change: 0 additions & 1 deletion src/providers/mssql/qgsmssqlprovider.cpp
Expand Up @@ -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() );
Expand Down
1 change: 0 additions & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 9459831

Please sign in to comment.