Skip to content

Commit

Permalink
chore(Mailer): remove unreferenced code
Browse files Browse the repository at this point in the history
The code is private, not referenced anywhere and never set.

Signed-off-by: Thomas Lehmann <t.lehmann@strato.de>
  • Loading branch information
thlehmann-ionos committed Nov 7, 2024
1 parent 11f0b0f commit e3f3824
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/private/Mail/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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')) {
Expand Down

0 comments on commit e3f3824

Please sign in to comment.