From 4a4b2938a601bd55762dfd637aef67f4ca1ddc04 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 13 Mar 2023 09:02:18 +0100 Subject: [PATCH] Remove unused GetConnectedPort() --- .../v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php | 7 +++---- snappymail/v/0.0.0/app/libraries/MailSo/Net/NetClient.php | 5 ----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php index e059d2620..72a993d62 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php @@ -55,8 +55,8 @@ class ImapClient extends \MailSo\Net\NetClient { return \md5('ImapClientHash/'. $this->Settings->Login . '@' . - $this->GetConnectedHost() . ':' . - $this->GetConnectedPort() + $this->Settings->host . ':' . + $this->Settings->port ); } @@ -218,8 +218,7 @@ class ImapClient extends \MailSo\Net\NetClient $this->setCapabilities($oResponse); - if (\strlen($sProxyAuthUser)) - { + if (\strlen($sProxyAuthUser)) { $this->SendRequestGetResponse('PROXYAUTH', array($this->EscapeString($sProxyAuthUser))); } /* diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Net/NetClient.php b/snappymail/v/0.0.0/app/libraries/MailSo/Net/NetClient.php index 321156ca1..4595ffaf0 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Net/NetClient.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Net/NetClient.php @@ -55,11 +55,6 @@ abstract class NetClient return $this->sConnectedHost; } - public function GetConnectedPort() : int - { - return $this->Settings->port; - } - public function SetTimeOuts(int $iConnectTimeOut = 10) : void { $this->iConnectTimeOut = \max(5, $iConnectTimeOut);