From a3251415458e55d13695624bdebde4806dfc93de Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Mon, 29 Nov 2021 17:06:01 +0100 Subject: Remove isIE and associated legacy scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- lib/private/TemplateLayout.php | 4 ---- lib/private/legacy/OC_Util.php | 13 ------------- 2 files changed, 17 deletions(-) (limited to 'lib/private') diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index a620b9fdac3..639e7dc007b 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -82,10 +82,6 @@ class TemplateLayout extends \OC_Template { /** @var IInitialStateService */ $this->initialState = \OC::$server->get(IInitialStateService::class); - if (\OC_Util::isIe()) { - Util::addStyle('ie'); - } - // Decide which page we show if ($renderAs === TemplateResponse::RENDER_AS_USER) { /** @var INavigationManager */ diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index 078e3cf9a03..4d614b2efea 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -1444,17 +1444,4 @@ class OC_Util { return false; } } - - /** - * is this Internet explorer ? - * - * @return boolean - */ - public static function isIe() { - if (!isset($_SERVER['HTTP_USER_AGENT'])) { - return false; - } - - return preg_match(Request::USER_AGENT_IE, $_SERVER['HTTP_USER_AGENT']) === 1; - } } -- cgit v1.2.3