Skip to content

Commit

Permalink
Remove redundant #[cfg] conditions from backend/direct.rs. (#2811)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy authored Jun 26, 2022
1 parent f041991 commit 788cd7d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions wgpu/src/backend/direct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,13 @@ 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,
) -> R {
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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 788cd7d

Please sign in to comment.