Skip to content

Commit

Permalink
RMF: remove unused private member
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Dec 5, 2023
1 parent 0832f94 commit 5d217e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions frmts/rmf/rmfdataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ static GUInt32 RMFStrToUnitType(const char *pszUnit, int *pbSuccess = nullptr)

RMFRasterBand::RMFRasterBand(RMFDataset *poDSIn, int nBandIn,
GDALDataType eType)
: nBytesPerPixel(poDSIn->sHeader.nBitDepth / 8),
nLastTileWidth(poDSIn->GetRasterXSize() % poDSIn->sHeader.nTileWidth),
: nLastTileWidth(poDSIn->GetRasterXSize() % poDSIn->sHeader.nTileWidth),
nLastTileHeight(poDSIn->GetRasterYSize() % poDSIn->sHeader.nTileHeight),
nDataSize(GDALGetDataTypeSizeBytes(eType))
{
Expand All @@ -152,7 +151,7 @@ RMFRasterBand::RMFRasterBand(RMFDataset *poDSIn, int nBandIn,
" last tile width %u, last tile height %u, "
"bytes per pixel is %d, data type size is %d",
nBand, nBlockXSize, nBlockYSize, nLastTileWidth, nLastTileHeight,
nBytesPerPixel, nDataSize);
poDSIn->sHeader.nBitDepth / 8, nDataSize);
#endif
}

Expand Down
1 change: 0 additions & 1 deletion frmts/rmf/rmfdataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ class RMFRasterBand final : public GDALRasterBand
friend class RMFDataset;

private:
GUInt32 nBytesPerPixel;
GUInt32 nBlockSize;
GUInt32 nBlockBytes;
GUInt32 nLastTileWidth;
Expand Down

0 comments on commit 5d217e9

Please sign in to comment.