Remove unnecessary unsafe impls for WinitWindows on Wasm (#11270)

# Objective

In the past `winit:🪟:Window` was not Send + Sync on web.
https://github.com/rust-windowing/winit/pull/2834 made
`winit:🪟:Window` Sync + Send so Bevy's `unsafe impl` is no longer
necessary.

## Solution

Remove the unsafe impls.
This commit is contained in:
Ian Kettlewell 2024-01-09 13:31:55 -05:00 committed by GitHub
parent 69016885c2
commit 13d3de8ee1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -356,9 +356,3 @@ pub fn winit_window_position(
}
}
}
// WARNING: this only works under the assumption that wasm runtime is single threaded
#[cfg(target_arch = "wasm32")]
unsafe impl Send for WinitWindows {}
#[cfg(target_arch = "wasm32")]
unsafe impl Sync for WinitWindows {}