Remove dead code

This commit is contained in:
Samuel Maier 2024-09-07 08:30:27 +02:00
parent 7e9f6f91d5
commit 817b928670

View File

@ -143,12 +143,6 @@ impl<T> UninitCell<T> {
}
}
impl<T: Copy> UninitCell<T> {
pub unsafe fn read(&self) -> T {
ptr::read(self.as_mut_ptr())
}
}
fn is_web_worker_thread() -> bool {
js_sys::eval("typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope")
.unwrap()