Remove unused AbstractGenerator::getChatUrlForJs method

This commit is contained in:
Dmitriy Simushev 2015-02-03 16:20:39 +00:00
parent 0dca0bb57d
commit 21ae86958d

View File

@ -171,27 +171,6 @@ abstract class AbstractGenerator implements GeneratorInterface
return $this->generateUrl('chat_user_start', $link_params);
}
/**
* Gets the URL of the chat start point.
*
* The result is a JavaScript String with several additional dynamic
* parameters. It can be use only as a JS String.
*
* @return string
*/
protected function getChatUrlForJs()
{
$url = str_replace('&', '&', $this->getChatUrl());
$modsecfix = $this->getOption('mod_security')
? ".replace('http://','').replace('https://','')"
: '';
return "'" . $url
. ((strpos($url, '?') === false) ? '?' : '&')
. "url='+escape(document.location.href$modsecfix)+'&"
. "referrer='+escape(document.referrer$modsecfix)";
}
/**
* Gets the style options string for the chat popup.
*