From 9da498b57be04e019229c67b919e203c0e8d7bd1 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 18 Oct 2024 00:58:57 +0800 Subject: [PATCH] Refactor main.rs to remove unused code --- src/main.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index e08a7d3..509bd46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -132,9 +132,6 @@ fn main() -> anyhow::Result<()> { ptr::null_mut(), )? }; - // let mut t_len = unsafe { - // Buffer::::create(&context, CL_MEM_READ_ONLY, work_count, ptr::null_mut())? - // }; let mut n_len = unsafe { Buffer::::create(&context, CL_MEM_READ_ONLY, work_count, ptr::null_mut())? }; @@ -160,9 +157,6 @@ fn main() -> anyhow::Result<()> { let _name_write_event = unsafe { queue.enqueue_write_buffer(&mut name, CL_BLOCKING, 0, &name_data_vec, &[]) }?; _name_write_event.wait()?; - // let _t_len_write_event = - // unsafe { queue.enqueue_write_buffer(&mut t_len, CL_BLOCKING, 0, &t_len_vec, &[]) }?; - // _t_len_write_event.wait()?; let _n_len_write_event = unsafe { queue.enqueue_write_buffer(&mut n_len, CL_BLOCKING, 0, &n_len_vec, &[]) }?; _n_len_write_event.wait()?;