mobile: simplify is_mobile
we don't need context anymore Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -48,8 +48,7 @@ pub fn hline(ui: &egui::Ui) {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[allow(unreachable_code)]
|
||||
pub fn is_mobile(_ctx: &egui::Context) -> bool {
|
||||
pub fn is_mobile() -> bool {
|
||||
#[cfg(feature = "emulate_mobile")]
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user