cleanup is_mobile method

This commit is contained in:
Simon Gardling 2022-05-04 15:15:38 -04:00
parent 40f070c726
commit 21a586913a

View File

@ -87,14 +87,9 @@ lazy_static::lazy_static! {
}; };
} }
#[cfg(not(target_arch = "wasm32"))]
const IS_MOBILE: bool = false;
#[inline] #[inline]
pub fn is_mobile() -> bool { #[cfg(target_arch = "wasm32")]
#[cfg(target_arch = "wasm32")] pub fn is_mobile() -> bool { return *IS_MOBILE; }
return *IS_MOBILE;
#[cfg(not(target_arch = "wasm32"))] #[cfg(not(target_arch = "wasm32"))]
return IS_MOBILE; pub const fn is_mobile() -> bool { return false; }
}