Skip to content

Commit 4438522

Browse files
committed
Remove unused member
1 parent 79c907b commit 4438522

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/core/raster/qgsrasteriterator.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ void QgsRasterIterator::startRasterRead( int bandNumber, int nCols, int nRows, c
5454
pInfo.nRows = nRows;
5555
pInfo.currentCol = 0;
5656
pInfo.currentRow = 0;
57-
pInfo.prj = nullptr;
5857
mRasterPartInfos.insert( bandNumber, pInfo );
5958
}
6059

@@ -91,8 +90,6 @@ bool QgsRasterIterator::readNextRasterPart( int bandNumber, int &nCols, int &nRo
9190
}
9291

9392
//remove last data block
94-
delete pInfo.prj;
95-
pInfo.prj = nullptr;
9693

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

141138
void QgsRasterIterator::removePartInfo( int bandNumber )
142139
{
143-
QMap<int, RasterPartInfo>::iterator partIt = mRasterPartInfos.find( bandNumber );
144-
if ( partIt != mRasterPartInfos.end() )
140+
auto partIt = mRasterPartInfos.constFind( bandNumber );
141+
if ( partIt != mRasterPartInfos.constEnd() )
145142
{
146-
RasterPartInfo &pInfo = partIt.value();
147-
delete pInfo.prj;
148143
mRasterPartInfos.remove( bandNumber );
149144
}
150145
}

src/core/raster/qgsrasteriterator.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ class CORE_EXPORT QgsRasterIterator
100100
int currentRow;
101101
int nCols;
102102
int nRows;
103-
QgsRasterProjector *prj; //raster projector (or 0 if no reprojection is done)
104103
};
105104

106105
QgsRasterInterface *mInput = nullptr;

0 commit comments

Comments
 (0)