mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Remove unused member
This commit is contained in:
parent
79c907bf3e
commit
443852270d
@ -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 );
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user