Skip to content

Commit

Permalink
Merge pull request #206 from Slamdunk/connection_expunge
Browse files Browse the repository at this point in the history
Remove misleading Mailbox::expunge()
  • Loading branch information
Slamdunk authored Sep 29, 2017
2 parents 07581df + e528e7c commit fadb08f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
10 changes: 0 additions & 10 deletions src/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,6 @@ public function delete()
$this->connection->deleteMailbox($this);
}

/**
* Delete all messages marked for deletion
*
* @return Mailbox
*/
public function expunge()
{
$this->connection->expunge();
}

/**
* Add a message to the mailbox
*
Expand Down
3 changes: 1 addition & 2 deletions tests/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

/**
* @covers \Ddeboer\Imap\Connection::expunge
* @covers \Ddeboer\Imap\Mailbox::expunge
* @covers \Ddeboer\Imap\Message
* @covers \Ddeboer\Imap\MessageIterator
* @covers \Ddeboer\Imap\Message\Attachment
Expand Down Expand Up @@ -221,7 +220,7 @@ public function testDelete()

$message = $this->mailbox->getMessage(3);
$message->delete();
$this->mailbox->expunge();
$this->getConnection()->expunge();

$this->assertCount(2, $this->mailbox);
foreach ($this->mailbox->getMessages() as $message) {
Expand Down

0 comments on commit fadb08f

Please sign in to comment.