From da54de32b9f1448bc103f4fd9270d6fcc817e2b3 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Wed, 27 Aug 2014 15:34:56 +0000 Subject: [PATCH] Remove unused "is_agent_opera95" function --- src/mibew/libs/chat.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/mibew/libs/chat.php b/src/mibew/libs/chat.php index 6094a509..e6ac16d8 100644 --- a/src/mibew/libs/chat.php +++ b/src/mibew/libs/chat.php @@ -171,27 +171,6 @@ function get_known_user_agents() ); } -/** - * Check if browser is opera 9.5 or greater - * - * @return bool Result of comparison of visitor browser and Opera 9.5 - */ -function is_agent_opera95() -{ - $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); - if (strstr($user_agent, "opera")) { - if (preg_match("/opera[\\s\/]?(\\d+(\\.\\d+)?)/", $user_agent, $matches)) { - $ver = $matches[1]; - - if ($ver >= "9.5") { - return true; - } - } - } - - return false; -} - /** * Check if browser is opera with mac os * @@ -487,9 +466,6 @@ function setup_chatview(Thread $thread) $data['chat']['messageForm']['ignoreCtrl'] = false; } - // Set some browser info - $data['isOpera95'] = is_agent_opera95(); - // Load dialogs style options $chat_style = new ChatStyle(ChatStyle::getCurrentStyle()); $style_config = $chat_style->getConfigurations();