Skip to content

Commit

Permalink
chore: Drop unused \OCA\Mail\Account::testConnectivity
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Oct 11, 2023
1 parent 6eb7908 commit ddcbe89
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions lib/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

use Horde_Imap_Client_Exception;
use Horde_Imap_Client_Socket;
use Horde_Mail_Transport;
use Horde_Mail_Transport_Smtphorde;
use JsonSerializable;
use OC;
use OCA\Mail\Cache\Cache;
Expand Down Expand Up @@ -205,23 +203,6 @@ public function getUserId() {
return $this->account->getUserId();
}

/**
* @deprecated
*
* @return void
*
* @throws ServiceException
*/
public function testConnectivity(Horde_Mail_Transport $transport): void {
// connect to imap
$this->getImapConnection();

// connect to smtp
if ($transport instanceof Horde_Mail_Transport_Smtphorde) {
$transport->getSMTPObject();
}
}

/**
* Factory method for creating new messages
*
Expand Down

0 comments on commit ddcbe89

Please sign in to comment.