mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +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;
|
||||
}
|
||||
|
||||
@@ -151,9 +151,6 @@ class Program : public BaseObject<_cl_program> {
|
||||
cl_int setProgramSpecializationConstant(cl_uint specId, size_t specSize, const void *specValue);
|
||||
MOCKABLE_VIRTUAL cl_int updateSpecializationConstant(cl_uint specId, size_t specSize, const void *specValue);
|
||||
|
||||
cl_int setReleaseCallback(void(CL_CALLBACK *funcNotify)(cl_program, void *),
|
||||
void *userData);
|
||||
|
||||
size_t getNumKernels() const;
|
||||
const KernelInfo *getKernelInfo(const char *kernelName) const;
|
||||
const KernelInfo *getKernelInfo(size_t ordinal) const;
|
||||
@@ -351,8 +348,6 @@ class Program : public BaseObject<_cl_program> {
|
||||
|
||||
bool isBuiltIn = false;
|
||||
bool kernelDebugEnabled = false;
|
||||
|
||||
std::list<ProgramReleaseCallback *> releaseCallbacks;
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user