mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Remove unused code
Change-Id: I342f58dc72a6ed5a9b9d9d30d5c43a109da5ff5b Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
@@ -113,11 +113,6 @@ Program::Program(ExecutionEnvironment &executionEnvironment, Context *context, b
|
||||
}
|
||||
|
||||
Program::~Program() {
|
||||
for (auto callback : releaseCallbacks) {
|
||||
callback->invoke(this);
|
||||
delete callback;
|
||||
}
|
||||
|
||||
cleanCurrentKernelInfo();
|
||||
|
||||
freeBlockResources();
|
||||
@@ -271,15 +266,6 @@ cl_int Program::updateSpecializationConstant(cl_uint specId, size_t specSize, co
|
||||
return CL_INVALID_SPEC_ID;
|
||||
}
|
||||
|
||||
cl_int Program::setReleaseCallback(void(CL_CALLBACK *funcNotify)(cl_program, void *),
|
||||
void *userData) {
|
||||
auto cb = new ProgramReleaseCallback(funcNotify, userData);
|
||||
|
||||
std::unique_lock<std::mutex> theLock(mtx);
|
||||
releaseCallbacks.push_front(cb);
|
||||
return CL_SUCCESS;
|
||||
}
|
||||
|
||||
void Program::setDevice(Device *device) {
|
||||
this->pDevice = device;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user