Skip to content

Commit

Permalink
GRASS raster: remove superfluous QProcess instances
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jan 9, 2014
1 parent 1b7c794 commit a07ddd6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/providers/grass/qgsgrassrasterprovider.cpp
Expand Up @@ -32,7 +32,6 @@
#include <QImage>
#include <QSettings>
#include <QColor>
#include <QProcess>
#include <QMessageBox>
#include <QDir>
#include <QFileInfo>
Expand Down Expand Up @@ -176,7 +175,6 @@ QImage* QgsGrassRasterProvider::draw( QgsRectangle const & viewExtent, int pixe
.arg( QgsRasterBlock::printValue( viewExtent.xMaximum() ) )
.arg( QgsRasterBlock::printValue( viewExtent.yMaximum() ) )
.arg( pixelWidth ).arg( pixelHeight ) ) );
QProcess process( this );
QString cmd = QgsApplication::libexecPath() + "grass/modules/qgis.d.rast";
QByteArray data;
try
Expand Down Expand Up @@ -230,7 +228,6 @@ void QgsGrassRasterProvider::readBlock( int bandNo, int xBlock, int yBlock, void
.arg( mCols ).arg( mYBlockSize ) ) );

arguments.append( "format=value" );
QProcess process( this );
QString cmd = QgsApplication::libexecPath() + "grass/modules/qgis.d.rast";
QByteArray data;
try
Expand Down Expand Up @@ -278,7 +275,6 @@ void QgsGrassRasterProvider::readBlock( int bandNo, QgsRectangle const & viewEx
.arg( QgsRasterBlock::printValue( viewExtent.yMaximum() ) )
.arg( pixelWidth ).arg( pixelHeight ) ) );
arguments.append( "format=value" );
QProcess process( this );
QString cmd = QgsApplication::libexecPath() + "grass/modules/qgis.d.rast";
QByteArray data;
try
Expand Down

0 comments on commit a07ddd6

Please sign in to comment.