From 69c0d3a8b73da64e69eabe20b958df01b0a27fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Tue, 12 Nov 2019 15:01:12 +0000 Subject: [PATCH] Remove dead code from test_userevents (#476) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This code probably predates the move to the test framework and is no longer useful. Signed-off-by: Kévin Petit --- test_conformance/events/test_userevents.cpp | 29 --------------------- 1 file changed, 29 deletions(-) diff --git a/test_conformance/events/test_userevents.cpp b/test_conformance/events/test_userevents.cpp index b484ac6e..5769afb0 100644 --- a/test_conformance/events/test_userevents.cpp +++ b/test_conformance/events/test_userevents.cpp @@ -260,32 +260,3 @@ int test_userevents( cl_device_id deviceID, cl_context context, cl_command_queue } -#if 0 -int main(int argc, char** argv) -{ - - cl_int err; - - test_start(); - - cl_device_type device_type; - CL_DEVICE_TYPE_ENV( device_type ); - - cl_device_id device_id; - CL_EXIT_ERROR(clGetDeviceIDs(NULL, device_type, 1, &device_id, NULL),"GetDeviceIDs"); - - // Create a context. - cl_context context = clCreateContext(0, 1, &device_id, NULL, NULL, &err); - CL_EXIT_ERROR(err,"CreateContext"); - - // Create a command queue. - q = clCreateCommandQueue(context,device_id,0,&err); - CL_EXIT_ERROR(err,"clCreateCommandQueue failed"); - - int ret = test_userevents( device_type, context, queue, 0 ); - - test_finish(); - - return ret; -} -#endif