Skip to content

Commit

Permalink
Remove unused provider argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 15, 2022
1 parent 3741119 commit c9bcfe5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/core/providers/gdal/qgsgdalprovider.cpp
Expand Up @@ -95,7 +95,6 @@ const int MAX_CACHE_SIZE = 50;

struct QgsGdalProgress
{
QgsGdalProvider *provider = nullptr;
QgsRasterBlockFeedback *feedback = nullptr;
};
//
Expand Down Expand Up @@ -1910,7 +1909,6 @@ QgsRasterHistogram QgsGdalProvider::histogram( int bandNo,
QgsDebugMsgLevel( QStringLiteral( "xSize() = %1 ySize() = %2 sampleSize = %3 bApproxOK = %4" ).arg( xSize() ).arg( ySize() ).arg( sampleSize ).arg( bApproxOK ), 2 );

QgsGdalProgress myProg;
myProg.provider = this;
myProg.feedback = feedback;

#if 0 // this is the old method
Expand Down Expand Up @@ -2155,8 +2153,6 @@ QString QgsGdalProvider::buildPyramids( const QList<QgsRasterPyramid> &rasterPyr
{
//build the pyramid and show progress to console
QgsGdalProgress myProg;
myProg.type = QgsRaster::ProgressPyramids;
myProg.provider = this;
myProg.feedback = feedback;
myError = GDALBuildOverviews( mGdalBaseDataset, method,
myOverviewLevelsVector.size(), myOverviewLevelsVector.data(),
Expand Down Expand Up @@ -2825,7 +2821,6 @@ QgsRasterBandStats QgsGdalProvider::bandStatistics( int bandNo, int stats, const
double pdfMean;
double pdfStdDev;
QgsGdalProgress myProg;
myProg.provider = this;
myProg.feedback = feedback;

// try to fetch the cached stats (bForce=FALSE)
Expand Down

0 comments on commit c9bcfe5

Please sign in to comment.