Remove unused GetConnectedPort()

This commit is contained in:
the-djmaze 2023-03-13 09:02:18 +01:00
parent 1b49399c46
commit 4a4b2938a6
2 changed files with 3 additions and 9 deletions

View file

@ -55,8 +55,8 @@ class ImapClient extends \MailSo\Net\NetClient
{ {
return \md5('ImapClientHash/'. return \md5('ImapClientHash/'.
$this->Settings->Login . '@' . $this->Settings->Login . '@' .
$this->GetConnectedHost() . ':' . $this->Settings->host . ':' .
$this->GetConnectedPort() $this->Settings->port
); );
} }
@ -218,8 +218,7 @@ class ImapClient extends \MailSo\Net\NetClient
$this->setCapabilities($oResponse); $this->setCapabilities($oResponse);
if (\strlen($sProxyAuthUser)) if (\strlen($sProxyAuthUser)) {
{
$this->SendRequestGetResponse('PROXYAUTH', array($this->EscapeString($sProxyAuthUser))); $this->SendRequestGetResponse('PROXYAUTH', array($this->EscapeString($sProxyAuthUser)));
} }
/* /*

View file

@ -55,11 +55,6 @@ abstract class NetClient
return $this->sConnectedHost; return $this->sConnectedHost;
} }
public function GetConnectedPort() : int
{
return $this->Settings->port;
}
public function SetTimeOuts(int $iConnectTimeOut = 10) : void public function SetTimeOuts(int $iConnectTimeOut = 10) : void
{ {
$this->iConnectTimeOut = \max(5, $iConnectTimeOut); $this->iConnectTimeOut = \max(5, $iConnectTimeOut);