From e3f3824c7f5f46ce06f357a95aa8e53549257017 Mon Sep 17 00:00:00 2001 From: Thomas Lehmann Date: Thu, 7 Nov 2024 11:02:17 +0100 Subject: [PATCH] chore(Mailer): remove unreferenced code The code is private, not referenced anywhere and never set. Signed-off-by: Thomas Lehmann --- lib/private/Mail/Mailer.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php index da3fcd3588871..1bc4ee701614f 100644 --- a/lib/private/Mail/Mailer.php +++ b/lib/private/Mail/Mailer.php @@ -58,8 +58,6 @@ class Mailer implements IMailer { public const MAX_LOGO_SIZE = 105; - private ?MailerInterface $instance = null; - public function __construct( private IConfig $config, private LoggerInterface $logger, @@ -251,10 +249,6 @@ public function validateMailAddress(string $email): bool { } protected function getInstance(): MailerInterface { - if (!is_null($this->instance)) { - return $this->instance; - } - $transport = null; switch ($this->config->getSystemValueString('mail_smtpmode', 'smtp')) {