Remove redundant #[cfg] conditions from backend/direct.rs. (#2811)

This commit is contained in:
Jim Blandy 2022-06-26 16:15:47 -07:00 committed by GitHub
parent f041991d0c
commit 788cd7d2bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,6 @@ impl Context {
))
}
#[cfg(any(not(target_arch = "wasm32"), feature = "webgl"))]
pub unsafe fn instance_as_hal<A: wgc::hub::HalApi, F: FnOnce(Option<&A::Instance>) -> R, R>(
&self,
hal_instance_callback: F,
@ -55,7 +54,6 @@ impl Context {
self.0.instance_as_hal::<A, F, R>(hal_instance_callback)
}
#[cfg(any(not(target_arch = "wasm32"), feature = "webgl"))]
pub unsafe fn from_core_instance(core_instance: wgc::instance::Instance) -> Self {
Self(wgc::hub::Global::from_instance(
wgc::hub::IdentityManagerFactory,
@ -83,7 +81,6 @@ impl Context {
self.0.create_adapter_from_hal(hal_adapter, PhantomData)
}
#[cfg(any(not(target_arch = "wasm32"), feature = "webgl"))]
pub unsafe fn adapter_as_hal<A: wgc::hub::HalApi, F: FnOnce(Option<&A::Adapter>) -> R, R>(
&self,
adapter: wgc::id::AdapterId,