diff --git a/application/views/helpers/RequestId.php b/application/views/helpers/RequestId.php deleted file mode 100644 index 0b9358081..000000000 --- a/application/views/helpers/RequestId.php +++ /dev/null @@ -1,43 +0,0 @@ - - * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 - * @author Icinga Development Team - * - */ -// {{{ICINGA_LICENSE_HEADER}}} - -use \Zend_Controller_Front; -use \Zend_View_Helper_Abstract; - -class Zend_View_Helper_RequestId extends Zend_View_Helper_Abstract -{ - public function requestId() - { - return Zend_Controller_Front::getInstance()->getRequest()->getId(); - } -} - -// @codingStandardsIgnoreStop diff --git a/library/Icinga/Web/Request.php b/library/Icinga/Web/Request.php index 8d6114d8a..95a5a2a37 100644 --- a/library/Icinga/Web/Request.php +++ b/library/Icinga/Web/Request.php @@ -63,20 +63,4 @@ class Request extends Zend_Controller_Request_Http { return $this->user; } - - /** - * Return a identifier to uniquely identify the request's source - * - * @return string - */ - public function getId() - { - $requestId = $this->getParam('request_id'); - - if ($requestId === null) { - $requestId = substr('abcdefghijklmnopqrstuvwxyz', mt_rand(0, 25), 1) . substr(md5(time()), -7); - } - - return $requestId; - } }