Skip to content

Commit ff1b6c2

Browse files
committed
Removed context from utils
1 parent 9068fe4 commit ff1b6c2

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

src/analysis/raster/qgsninecellfilter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "cpl_string.h"
2121
#include "qgsfeedback.h"
2222
#include "qgsogrutils.h"
23+
#include "qgsmessagelog.h"
2324
#include <QFile>
2425
#include <QDebug>
2526
#include <QFileInfo>

src/core/qgsopenclutils.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
QLatin1String QgsOpenClUtils::SETTINGS_KEY = QLatin1Literal( "OpenClEnabled" );
2626
QLatin1String QgsOpenClUtils::LOGMESSAGE_TAG = QLatin1Literal( "OpenCL" );
27-
std::unique_ptr<cl::Context> QgsOpenClUtils::sContext = nullptr;
2827
bool QgsOpenClUtils::sAvailable = false;
2928

3029

@@ -71,10 +70,6 @@ void QgsOpenClUtils::init()
7170
else
7271
{
7372
cl::Device::setDefault( dev );
74-
std::vector<cl::Device> devices;
75-
devices.push_back( cl::Device::getDefault() );
76-
sContext = qgis::make_unique<cl::Context>( devices );
77-
cl::Context::setDefault( *sContext );
7873
sAvailable = true;
7974
}
8075
}

src/core/qgsopenclutils.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
#include "qgis_core.h"
2828
#include "qgis.h"
2929

30-
//TODO: remove
31-
#include "qgsmessagelog.h"
32-
3330

3431
/**
3532
* \ingroup core
@@ -52,8 +49,6 @@ class CORE_EXPORT QgsOpenClUtils
5249
QgsOpenClUtils();
5350
static void init();
5451
static bool sAvailable;
55-
// TODO: check if this is needed
56-
static std::unique_ptr<cl::Context> sContext;
5752
static QLatin1String SETTINGS_KEY;
5853

5954
};

0 commit comments

Comments
 (0)