Skip to content

Commit 1923967

Browse files
committed
Remove debug output
1 parent 1aef9cf commit 1923967

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/core/raster/qgshillshaderenderer.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#endif
3333
#include "qgsexception.h"
3434
#include "qgsopenclutils.h"
35-
#include "qdebug.h"
3635
#endif
3736

3837
QgsHillshadeRenderer::QgsHillshadeRenderer( QgsRasterInterface *input, int band, double lightAzimuth, double lightAngle ):
@@ -215,14 +214,13 @@ QgsRasterBlock *QgsHillshadeRenderer::block( int bandNo, const QgsRectangle &ext
215214
typeName = QStringLiteral( "float" );
216215
break;
217216
default:
218-
throw QgsException( QStringLiteral( "Unsupported data type for OpenCL processing.") );
217+
throw QgsException( QStringLiteral( "Unsupported data type for OpenCL processing." ) );
219218
}
220219

221220
if ( inputBlock->dataType() != Qgis::DataType::Float32 )
222221
{
223-
source.replace(QStringLiteral( "__global float *scanLine" ), QStringLiteral( "__global %1 *scanLine" ).arg( typeName ));
222+
source.replace( QStringLiteral( "__global float *scanLine" ), QStringLiteral( "__global %1 *scanLine" ).arg( typeName ) );
224223
}
225-
qDebug() << source;
226224

227225
// Data type for input is Float32 (4 bytes)
228226
std::size_t scanLineWidth( inputBlock->width() + 2 );
@@ -280,7 +278,7 @@ QgsRasterBlock *QgsHillshadeRenderer::block( int bandNo, const QgsRectangle &ext
280278

281279
static std::map<Qgis::DataType, cl::Program> programCache;
282280
cl::Program program = programCache[inputBlock->dataType()];
283-
if (! program.get() )
281+
if ( ! program.get() )
284282
{
285283
// Create a program from the kernel source
286284
programCache[inputBlock->dataType()] = QgsOpenClUtils::buildProgram( source, QgsOpenClUtils::ExceptionBehavior::Throw );

0 commit comments

Comments
 (0)