mobile: simplify is_mobile

we don't need context anymore

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-05-15 18:01:04 -07:00
parent 12a6c64778
commit dbc56ac098
6 changed files with 8 additions and 9 deletions

View File

@@ -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;