Remove unused MailClient::InboxUnreadCount()

This commit is contained in:
djmaze 2022-01-07 13:55:06 +01:00
parent a426330dca
commit d9268773db

View file

@ -588,22 +588,6 @@ class MailClient
return $this->GenerateFolderHash($sFolderName, $iCount, $iUidNext, $iHighestModSeq);
}
/**
* @throws \MailSo\Net\Exceptions\Exception
* @throws \MailSo\Imap\Exceptions\Exception
*/
public function InboxUnreadCount() : int
{
$aFolderStatus = $this->oImapClient->FolderStatus('INBOX', array(
FolderResponseStatus::UNSEEN
));
$iResult = isset($aFolderStatus[FolderResponseStatus::UNSEEN]) ?
(int) $aFolderStatus[FolderResponseStatus::UNSEEN] : 0;
return 0 < $iResult ? $iResult : 0;
}
/**
* @throws \MailSo\Base\Exceptions\InvalidArgumentException
* @throws \MailSo\Net\Exceptions\Exception