Skip to content

Commit

Permalink
removed unused function "getReceiverTypes" (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
wachterjohannes authored and alexander-schranz committed Sep 29, 2017
1 parent 35240a7 commit e7c7e4b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 23 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## 0.3.0 (unreleased)
## 0.3.1

- HOTFIX #99 Removed unused function "getReceiverTypes"

## 0.3.0

- BUGFIX #98 Fixed Dutch translations
- FEATURE #83 Refractor static and dynamic form handling for symfony 3 compatibility
Expand Down
12 changes: 0 additions & 12 deletions Mail/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,4 @@ public function sendMail(

return $this->mailer->send($message);
}

/**
* {@inheritdoc}
*/
public function getReceiverTypes()
{
return [
self::MAIL_RECEIVER_TO => [],
self::MAIL_RECEIVER_CC => [],
self::MAIL_RECEIVER_BCC => [],
];
}
}
7 changes: 0 additions & 7 deletions Mail/HelperInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,4 @@ public function sendMail(
$ccMail = [],
$bccMail = []
);

/**
* Returns an array for holding receivers divided by types.
*
* @return array
*/
public function getReceiverTypes();
}
5 changes: 2 additions & 3 deletions Mail/NullHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ class NullHelper implements HelperInterface
/**
* @param LoggerInterface $logger
*/
public function __construct(
$logger = null
) {
public function __construct($logger = null)
{
$this->logger = $logger ?: new NullLogger();
}

Expand Down
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Upgrade

## 0.3.1

- `Sulu\Bundle\FormBundle\Mail\HelperInterface::getReceiverTypes` unused function was removed.

## 0.3.0

### Symfony 3 compatibility
Expand Down

0 comments on commit e7c7e4b

Please sign in to comment.