Skip to content

Commit

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

struct QgsGdalProgress
{
QgsGdalProvider *provider = nullptr;
QgsRasterBlockFeedback *feedback = nullptr;
};
//
Expand Down Expand Up @@ -1935,7 +1934,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 @@ -2180,8 +2178,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 @@ -2846,7 +2842,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 96f6641

Please sign in to comment.