From cec6f4902394f74653c3b11bf04221d59470aeb1 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Fri, 22 Feb 2019 20:24:10 +0100 Subject: [PATCH] Removed unused code --- src/App.php | 3 --- src/Core/System.php | 15 --------------- 2 files changed, 18 deletions(-) diff --git a/src/App.php b/src/App.php index 3df285cb38..5a8d9831d6 100644 --- a/src/App.php +++ b/src/App.php @@ -197,7 +197,6 @@ class App $this->footerScripts[] = trim($url, '/'); } - public $process_id; public $queue; private $scheme; private $hostname; @@ -367,8 +366,6 @@ class App $this->loadDefaultTimezone(); Core\L10n::init(); - - $this->process_id = Core\System::processID('log'); } /** diff --git a/src/Core/System.php b/src/Core/System.php index f0ed083573..69d15a1764 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -234,21 +234,6 @@ class System extends BaseObject } } - /** - * Generates a process identifier for the logging - * - * @param string $prefix A given prefix - * - * @return string a generated process identifier - */ - public static function processID($prefix) - { - // We aren't calling any other function here. - // Doing so could easily create an endless loop - $trailer = $prefix . ':' . getmypid() . ':'; - return substr($trailer . uniqid('') . mt_rand(), 0, 26); - } - /** * Returns the current Load of the System * -- 2.39.5