From 82579827da1d9b088de65ea17a5d018b7799d99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Tue, 12 Nov 2019 15:01:32 +0000 Subject: [PATCH] Remove dead code from test_userevents (#473) 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 c660508f..66ac7acb 100644 --- a/test_conformance/events/test_userevents.cpp +++ b/test_conformance/events/test_userevents.cpp @@ -262,32 +262,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 = clCreateCommandQueueWithProperties(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