From 793b763e5f0a8c7790df0d069261c2e1b8b3342d Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Tue, 29 Aug 2023 11:13:28 +0200 Subject: [PATCH] `CustomVariableCache`: Remove redundant destructor Property `$db` is not declared for it to be unset. --- library/Director/Db/Cache/CustomVariableCache.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/Director/Db/Cache/CustomVariableCache.php b/library/Director/Db/Cache/CustomVariableCache.php index 243ecae94..ee2b9ef74 100644 --- a/library/Director/Db/Cache/CustomVariableCache.php +++ b/library/Director/Db/Cache/CustomVariableCache.php @@ -76,9 +76,4 @@ public function getVarsForObject(IcingaObject $object) return new CustomVariables(); } } - - public function __destruct() - { - unset($this->db); - } }