From edfdea9b7b4f37b061d7da05397d11357d0d9e35 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Mon, 24 Jun 2024 21:26:58 +0530 Subject: [PATCH] fix this --- src/Util.hx | 61 ----------------------------------------------------- 1 file changed, 61 deletions(-) diff --git a/src/Util.hx b/src/Util.hx index 7df0e3d1..db3ec6f7 100644 --- a/src/Util.hx +++ b/src/Util.hx @@ -432,67 +432,6 @@ class Util { #end } - public static inline function isIOS() { - #if js - var reg = ~/iPad|iPhone|iPod/; - return reg.match(js.Browser.navigator.userAgent); - #end - #if hl - return false; - #end - } - - public static inline function isTablet() { - #if js - var reg = ~/iPad|tablet/; - return reg.match(js.Browser.navigator.userAgent); - #end - #if hl - return false; - #end - } - - public static inline function isIPhone() { - #if js - var reg = ~/iPhone/; - return reg.match(js.Browser.navigator.userAgent); - #end - #if hl - return false; - #end - } - - public static function isIOSInstancingSupported() { - #if js - static var _supported = null; - if (_supported != null) - return _supported; - - if (isIOS()) { - var reg = ~/OS (\d+)_(\d+)_?(\d+)?/; - if (reg.match(js.Browser.navigator.userAgent)) { - var mainVer = Std.parseInt(reg.matched(1)); - if (mainVer < 17) { - _supported = false; - return false; - } else { - _supported = true; - return true; - } - } else { - _supported = false; - return false; - } - } else { - _supported = true; - return true; - } - #end - #if hl - return true; - #end - } - public static inline function isInFullscreen() { #if js return (js.Browser.window.innerHeight == js.Browser.window.screen.height