From d9268773db02193bac753300cc6e35f64e97c729 Mon Sep 17 00:00:00 2001 From: djmaze <> Date: Fri, 7 Jan 2022 13:55:06 +0100 Subject: [PATCH] Remove unused MailClient::InboxUnreadCount() --- .../app/libraries/MailSo/Mail/MailClient.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php index be0dd63cb..4aec3b6ae 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php @@ -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