summaryrefslogtreecommitdiff
path: root/src/cl_context.c
diff options
context:
space:
mode:
authorYang, Rong R <rong.r.yang@intel.com>2017-06-20 19:07:47 +0800
committerYang Rong <rong.r.yang@intel.com>2017-07-10 17:21:37 +0800
commit4933bf9212c9721ca2b0e615097ed2b53fec51c3 (patch)
treec4633a50c9b6d382a3dccce8a28d82e48e95af5a /src/cl_context.c
parent446132d40099c16135a63f52cb228dc417d3b858 (diff)
Runtime: remove ctx's useless fileds.
built_in_prgs and built_in_kernels seems useless, remove them. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
Diffstat (limited to 'src/cl_context.c')
-rw-r--r--src/cl_context.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/cl_context.c b/src/cl_context.c
index f3dd4219..798419aa 100644
--- a/src/cl_context.c
+++ b/src/cl_context.c
@@ -396,12 +396,6 @@ cl_context_delete(cl_context ctx)
ctx->internal_prgs[i] = NULL;
cl_program_delete(p);
}
-
- if (ctx->built_in_kernels[i]) {
- cl_kernel k = ctx->built_in_kernels[i];
- ctx->built_in_kernels[i] = NULL;
- cl_kernel_delete(k);
- }
}
CL_OBJECT_DEC_REF(ctx);