Remove unused needs_frame_src function

This commit is contained in:
Dmitriy Simushev 2014-08-26 14:53:21 +00:00
parent aad2f6a34f
commit 57770e76cf

View File

@ -204,18 +204,6 @@ function is_mac_opera()
return strstr($user_agent, "opera") && strstr($user_agent, "mac");
}
/**
* Check if frame src needed
*
* @return bool True if frame is necessary otherwise return False
*/
function needs_frame_src()
{
$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
return strstr($user_agent, "safari/");
}
/**
* Prepare logo data
*
@ -501,7 +489,6 @@ function setup_chatview(Thread $thread)
// Set some browser info
$data['isOpera95'] = is_agent_opera95();
$data['neediframesrc'] = needs_frame_src();
// Load dialogs style options
$chat_style = new ChatStyle(ChatStyle::getCurrentStyle());