Remove unused member

This commit is contained in:
Nyall Dawson 2018-06-11 20:13:15 +10:00
parent 79c907bf3e
commit 443852270d
2 changed files with 2 additions and 8 deletions

View File

@ -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 );
}
@ -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 )
@ -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 );
}
}

View File

@ -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;