mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Remove dead code
This commit is contained in:
parent
7e9f6f91d5
commit
817b928670
@ -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 {
|
fn is_web_worker_thread() -> bool {
|
||||||
js_sys::eval("typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope")
|
js_sys::eval("typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope")
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
Loading…
Reference in New Issue
Block a user