Skip to content

Commit

Permalink
Remove unused member
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 13, 2018
1 parent 79c907b commit 4438522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/core/raster/qgsrasteriterator.cpp
Expand Up @@ -54,7 +54,6 @@ void QgsRasterIterator::startRasterRead( int bandNumber, int nCols, int nRows, c
pInfo.nRows = nRows;
pInfo.currentCol = 0;
pInfo.currentRow = 0;
pInfo.prj = nullptr;
mRasterPartInfos.insert( bandNumber, pInfo );
}

Expand Down Expand Up @@ -91,8 +90,6 @@ bool QgsRasterIterator::readNextRasterPart( int bandNumber, int &nCols, int &nRo
}

//remove last data block
delete pInfo.prj;
pInfo.prj = nullptr;

//already at end
if ( pInfo.currentCol == pInfo.nCols && pInfo.currentRow == pInfo.nRows )
Expand Down Expand Up @@ -140,11 +137,9 @@ void QgsRasterIterator::stopRasterRead( int bandNumber )

void QgsRasterIterator::removePartInfo( int bandNumber )
{
QMap<int, RasterPartInfo>::iterator partIt = mRasterPartInfos.find( bandNumber );
if ( partIt != mRasterPartInfos.end() )
auto partIt = mRasterPartInfos.constFind( bandNumber );
if ( partIt != mRasterPartInfos.constEnd() )
{
RasterPartInfo &pInfo = partIt.value();
delete pInfo.prj;
mRasterPartInfos.remove( bandNumber );
}
}
1 change: 0 additions & 1 deletion src/core/raster/qgsrasteriterator.h
Expand Up @@ -100,7 +100,6 @@ class CORE_EXPORT QgsRasterIterator
int currentRow;
int nCols;
int nRows;
QgsRasterProjector *prj; //raster projector (or 0 if no reprojection is done)
};

QgsRasterInterface *mInput = nullptr;
Expand Down

0 comments on commit 4438522

Please sign in to comment.